skim: 0.15.7 -> 0.16.0 (#376410)
[NixPkgs.git] / pkgs / by-name / et / eternal-terminal / package.nix
blob634ecfbbf4d0ae47ccbb4e55f2cfec62d1c5e431
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
6   gflags,
7   libsodium,
8   openssl,
9   protobuf,
10   zlib,
11   catch2,
12   darwin,
15 stdenv.mkDerivation rec {
16   pname = "eternal-terminal";
17   version = "6.2.9";
19   src = fetchFromGitHub {
20     owner = "MisterTea";
21     repo = "EternalTerminal";
22     tag = "et-v${version}";
23     hash = "sha256-vukh3a6SxHaVCT4hmoVt4hEGB8Sqylu53Nz8fgBWkTM";
24   };
26   nativeBuildInputs = [
27     cmake
28   ];
30   buildInputs = [
31     gflags
32     libsodium
33     openssl
34     protobuf
35     zlib
36   ];
38   preBuild = ''
39     mkdir -p ../external_imported/Catch2/single_include/catch2
40     cp ${catch2}/include/catch2/catch.hpp ../external_imported/Catch2/single_include/catch2/catch.hpp
41   '';
43   cmakeFlags = [
44     "-DDISABLE_VCPKG=TRUE"
45     "-DDISABLE_SENTRY=TRUE"
46     "-DDISABLE_CRASH_LOG=TRUE"
47   ];
49   CXXFLAGS = lib.optionals stdenv.cc.isClang [
50     "-std=c++17"
51   ];
53   doCheck = true;
55   meta = with lib; {
56     description = "Remote shell that automatically reconnects without interrupting the session";
57     homepage = "https://eternalterminal.dev/";
58     changelog = "https://github.com/MisterTea/EternalTerminal/releases/tag/et-v${version}";
59     license = licenses.asl20;
60     maintainers = with maintainers; [
61       dezgeg
62       jshort
63     ];
64     platforms = platforms.linux ++ platforms.darwin;
65   };