depot/third_party/nixpkgs/pkgs/tools/networking/eternal-terminal/default.nix
Default email 18bad4282a Project import generated by Copybara.
GitOrigin-RevId: 1c2986bbb806c57f9470bf3231d8da7250ab9091
2021-06-01 12:57:12 +02:00

41 lines
980 B
Nix

{ lib, stdenv
, fetchFromGitHub
, cmake
, gflags
, libsodium
, openssl
, protobuf
, zlib
}:
stdenv.mkDerivation rec {
pname = "eternal-terminal";
version = "6.1.8";
src = fetchFromGitHub {
owner = "MisterTea";
repo = "EternalTerminal";
rev = "et-v${version}";
sha256 = "sha256-VSJ6AoVBvlCdKSirSDqsemixF+kAnvPgBQlyJxjoPcs=";
};
cmakeFlags= [
"-DDISABLE_VCPKG=TRUE"
"-DDISABLE_SENTRY=TRUE"
"-DDISABLE_CRASH_LOG=TRUE"
];
CXXFLAGS = lib.optional stdenv.cc.isClang "-std=c++17";
LDFLAGS = lib.optional stdenv.cc.isClang "-lc++fs";
nativeBuildInputs = [ cmake ];
buildInputs = [ gflags openssl zlib libsodium protobuf ];
meta = with lib; {
description = "Remote shell that automatically reconnects without interrupting the session";
license = licenses.asl20;
homepage = "https://eternalterminal.dev/";
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ dezgeg pingiun ];
};
}