2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, gflags
|
|
|
|
, libsodium
|
2021-05-03 20:48:10 +00:00
|
|
|
, openssl
|
2020-04-24 23:36:52 +00:00
|
|
|
, protobuf
|
2021-05-03 20:48:10 +00:00
|
|
|
, zlib
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "eternal-terminal";
|
2021-06-01 10:57:12 +00:00
|
|
|
version = "6.1.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MisterTea";
|
|
|
|
repo = "EternalTerminal";
|
|
|
|
rev = "et-v${version}";
|
2021-06-01 10:57:12 +00:00
|
|
|
sha256 = "sha256-VSJ6AoVBvlCdKSirSDqsemixF+kAnvPgBQlyJxjoPcs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
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";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2021-05-03 20:48:10 +00:00
|
|
|
buildInputs = [ gflags openssl zlib libsodium protobuf ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Remote shell that automatically reconnects without interrupting the session";
|
|
|
|
license = licenses.asl20;
|
2021-05-03 20:48:10 +00:00
|
|
|
homepage = "https://eternalterminal.dev/";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ dezgeg pingiun ];
|
|
|
|
};
|
|
|
|
}
|