2022-01-14 21:58:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-11-01 11:46:50 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, gflags
|
|
|
|
, libsodium
|
2021-04-26 23:38:00 +00:00
|
|
|
, openssl
|
2019-11-01 11:46:50 +00:00
|
|
|
, protobuf
|
2021-04-26 23:38:00 +00:00
|
|
|
, zlib
|
2021-10-09 21:37:51 +00:00
|
|
|
, catch2
|
2019-11-01 11:46:50 +00:00
|
|
|
}:
|
2018-01-30 05:43:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "eternal-terminal";
|
2022-01-14 21:58:41 +00:00
|
|
|
version = "6.1.11";
|
2018-01-30 05:43:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MisterTea";
|
2019-11-01 11:46:50 +00:00
|
|
|
repo = "EternalTerminal";
|
|
|
|
rev = "et-v${version}";
|
2022-01-14 21:58:41 +00:00
|
|
|
hash = "sha256-cCZbG0CD5V/FTj1BuVr083EJ+BCgIcKHomNtpJb3lOo=";
|
2018-01-30 05:43:41 +00:00
|
|
|
};
|
|
|
|
|
2021-10-09 21:37:51 +00:00
|
|
|
preBuild = ''
|
|
|
|
cp ${catch2}/include/catch2/catch.hpp ../external_imported/Catch2/single_include/catch2/catch.hpp
|
|
|
|
'';
|
|
|
|
|
2022-01-14 21:58:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gflags
|
|
|
|
libsodium
|
|
|
|
openssl
|
|
|
|
protobuf
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2021-04-26 23:38:00 +00:00
|
|
|
"-DDISABLE_VCPKG=TRUE"
|
|
|
|
"-DDISABLE_SENTRY=TRUE"
|
|
|
|
"-DDISABLE_CRASH_LOG=TRUE"
|
|
|
|
];
|
|
|
|
|
2022-01-14 21:58:41 +00:00
|
|
|
CXXFLAGS = lib.optional stdenv.cc.isClang [
|
|
|
|
"-std=c++17"
|
|
|
|
];
|
2021-04-26 23:38:00 +00:00
|
|
|
|
2021-10-09 21:37:51 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-01-30 05:43:41 +00:00
|
|
|
description = "Remote shell that automatically reconnects without interrupting the session";
|
2021-04-26 23:38:00 +00:00
|
|
|
homepage = "https://eternalterminal.dev/";
|
2022-01-14 21:58:41 +00:00
|
|
|
license = licenses.asl20;
|
2022-02-19 16:35:25 +00:00
|
|
|
maintainers = with maintainers; [ dezgeg ];
|
2022-01-14 21:58:41 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2018-01-30 05:43:41 +00:00
|
|
|
};
|
|
|
|
}
|