depot/third_party/nixpkgs/pkgs/tools/networking/eternal-terminal/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

61 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, gflags
, libsodium
, openssl
, protobuf
, zlib
, catch2
}:
stdenv.mkDerivation rec {
pname = "eternal-terminal";
version = "6.2.9";
src = fetchFromGitHub {
owner = "MisterTea";
repo = "EternalTerminal";
rev = "refs/tags/et-v${version}";
hash = "sha256-vukh3a6SxHaVCT4hmoVt4hEGB8Sqylu53Nz8fgBWkTM";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
gflags
libsodium
openssl
protobuf
zlib
];
preBuild = ''
mkdir -p ../external_imported/Catch2/single_include/catch2
cp ${catch2}/include/catch2/catch.hpp ../external_imported/Catch2/single_include/catch2/catch.hpp
'';
cmakeFlags = [
"-DDISABLE_VCPKG=TRUE"
"-DDISABLE_SENTRY=TRUE"
"-DDISABLE_CRASH_LOG=TRUE"
];
CXXFLAGS = lib.optionals stdenv.cc.isClang [
"-std=c++17"
];
doCheck = true;
meta = with lib; {
description = "Remote shell that automatically reconnects without interrupting the session";
homepage = "https://eternalterminal.dev/";
changelog = "https://github.com/MisterTea/EternalTerminal/releases/tag/et-v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ dezgeg jshort ];
platforms = platforms.linux ++ platforms.darwin;
};
}