3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/eternal-terminal/default.nix
2021-04-28 05:48:42 -07:00

42 lines
981 B
Nix

{ lib, stdenv
, fetchFromGitHub
, cmake
, gflags
, libsodium
, openssl
, protobuf
, zlib
}:
stdenv.mkDerivation rec {
pname = "eternal-terminal";
version = "6.1.7";
src = fetchFromGitHub {
owner = "MisterTea";
repo = "EternalTerminal";
rev = "et-v${version}";
sha256 = "0jpm1ilr1qfz55y4mqp75v4q433qla5jhi1b8nsmx48srs7f0j2q";
};
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 ];
};
}