2022-01-19 23:45:15 +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
|
2022-04-15 01:41:22 +00:00
|
|
|
, catch2
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "eternal-terminal";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "6.2.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MisterTea";
|
|
|
|
repo = "EternalTerminal";
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/et-v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-vukh3a6SxHaVCT4hmoVt4hEGB8Sqylu53Nz8fgBWkTM";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gflags
|
|
|
|
libsodium
|
|
|
|
openssl
|
|
|
|
protobuf
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
preBuild = ''
|
2024-06-05 15:53:02 +00:00
|
|
|
mkdir -p ../external_imported/Catch2/single_include/catch2
|
2022-06-16 17:23:12 +00:00
|
|
|
cp ${catch2}/include/catch2/catch.hpp ../external_imported/Catch2/single_include/catch2/catch.hpp
|
|
|
|
'';
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
cmakeFlags = [
|
2021-05-03 20:48:10 +00:00
|
|
|
"-DDISABLE_VCPKG=TRUE"
|
|
|
|
"-DDISABLE_SENTRY=TRUE"
|
|
|
|
"-DDISABLE_CRASH_LOG=TRUE"
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
CXXFLAGS = lib.optionals stdenv.cc.isClang [
|
2022-01-19 23:45:15 +00:00
|
|
|
"-std=c++17"
|
|
|
|
];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
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";
|
2021-05-03 20:48:10 +00:00
|
|
|
homepage = "https://eternalterminal.dev/";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/MisterTea/EternalTerminal/releases/tag/et-v${version}";
|
2022-01-19 23:45:15 +00:00
|
|
|
license = licenses.asl20;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [ dezgeg jshort ];
|
2022-01-19 23:45:15 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|