evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / et / eternal-terminal / package.nix
blobc580d02a794f35d32873d058195f9ebff11949c3
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , gflags
6 , libsodium
7 , openssl
8 , protobuf
9 , zlib
10 , catch2
11 , darwin
14 stdenv.mkDerivation rec {
15   pname = "eternal-terminal";
16   version = "6.2.9";
18   src = fetchFromGitHub {
19     owner = "MisterTea";
20     repo = "EternalTerminal";
21     rev = "refs/tags/et-v${version}";
22     hash = "sha256-vukh3a6SxHaVCT4hmoVt4hEGB8Sqylu53Nz8fgBWkTM";
23   };
25   nativeBuildInputs = [
26     cmake
27   ];
29   buildInputs = [
30     gflags
31     libsodium
32     openssl
33     protobuf
34     zlib
35   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
36     darwin.libutil
37   ];
39   preBuild = ''
40     mkdir -p ../external_imported/Catch2/single_include/catch2
41     cp ${catch2}/include/catch2/catch.hpp ../external_imported/Catch2/single_include/catch2/catch.hpp
42   '';
44   cmakeFlags = [
45     "-DDISABLE_VCPKG=TRUE"
46     "-DDISABLE_SENTRY=TRUE"
47     "-DDISABLE_CRASH_LOG=TRUE"
48   ];
50   CXXFLAGS = lib.optionals stdenv.cc.isClang [
51     "-std=c++17"
52   ];
54   doCheck = true;
56   meta = with lib; {
57     description = "Remote shell that automatically reconnects without interrupting the session";
58     homepage = "https://eternalterminal.dev/";
59     changelog = "https://github.com/MisterTea/EternalTerminal/releases/tag/et-v${version}";
60     license = licenses.asl20;
61     maintainers = with maintainers; [ dezgeg jshort ];
62     platforms = platforms.linux ++ platforms.darwin;
63   };