rio: 0.0.36 -> 0.0.37
[NixPkgs.git] / pkgs / tools / networking / eternal-terminal / default.nix
blob27778006b1e18ea855cc73299ae816774c201287
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , gflags
6 , libsodium
7 , openssl
8 , protobuf
9 , zlib
10 , catch2
13 stdenv.mkDerivation rec {
14   pname = "eternal-terminal";
15   version = "6.2.8";
17   src = fetchFromGitHub {
18     owner = "MisterTea";
19     repo = "EternalTerminal";
20     rev = "refs/tags/et-v${version}";
21     hash = "sha256-7LhCP7zARpigsDJmA7y/ZIgN06l8aCszXryzPoa4aL0=";
22   };
24   nativeBuildInputs = [
25     cmake
26   ];
28   buildInputs = [
29     gflags
30     libsodium
31     openssl
32     protobuf
33     zlib
34   ];
36   preBuild = ''
37     mkdir -p ../external_imported/Catch2/single_include/catch2
38     cp ${catch2}/include/catch2/catch.hpp ../external_imported/Catch2/single_include/catch2/catch.hpp
39   '';
41   cmakeFlags = [
42     "-DDISABLE_VCPKG=TRUE"
43     "-DDISABLE_SENTRY=TRUE"
44     "-DDISABLE_CRASH_LOG=TRUE"
45   ];
47   CXXFLAGS = lib.optionals stdenv.cc.isClang [
48     "-std=c++17"
49   ];
51   doCheck = true;
53   meta = with lib; {
54     description = "Remote shell that automatically reconnects without interrupting the session";
55     homepage = "https://eternalterminal.dev/";
56     changelog = "https://github.com/MisterTea/EternalTerminal/releases/tag/et-v${version}";
57     license = licenses.asl20;
58     maintainers = with maintainers; [ dezgeg jshort ];
59     platforms = platforms.linux ++ platforms.darwin;
60   };