nixpkgs/pkgs/tools/networking/eternal-terminal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.3 KiB
Nix
Raw Normal View History

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
, catch2
2019-11-01 11:46:50 +00:00
}:
2018-01-30 05:43:41 +00:00
stdenv.mkDerivation rec {
pname = "eternal-terminal";
version = "6.2.9";
2018-01-30 05:43:41 +00:00
src = fetchFromGitHub {
owner = "MisterTea";
2019-11-01 11:46:50 +00:00
repo = "EternalTerminal";
rev = "refs/tags/et-v${version}";
hash = "sha256-vukh3a6SxHaVCT4hmoVt4hEGB8Sqylu53Nz8fgBWkTM";
2018-01-30 05:43:41 +00:00
};
2022-01-14 21:58:41 +00:00
nativeBuildInputs = [
cmake
];
buildInputs = [
gflags
libsodium
openssl
protobuf
zlib
];
2022-05-28 11:16:22 +00:00
preBuild = ''
mkdir -p ../external_imported/Catch2/single_include/catch2
2022-05-28 11:16:22 +00:00
cp ${catch2}/include/catch2/catch.hpp ../external_imported/Catch2/single_include/catch2/catch.hpp
'';
2022-01-14 21:58:41 +00:00
cmakeFlags = [
2021-04-26 23:38:00 +00:00
"-DDISABLE_VCPKG=TRUE"
"-DDISABLE_SENTRY=TRUE"
"-DDISABLE_CRASH_LOG=TRUE"
];
CXXFLAGS = lib.optionals stdenv.cc.isClang [
2022-01-14 21:58:41 +00:00
"-std=c++17"
];
2021-04-26 23:38:00 +00:00
doCheck = true;
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/";
changelog = "https://github.com/MisterTea/EternalTerminal/releases/tag/et-v${version}";
2022-01-14 21:58:41 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ dezgeg jshort ];
2022-01-14 21:58:41 +00:00
platforms = platforms.linux ++ platforms.darwin;
2018-01-30 05:43:41 +00:00
};
}