Files
nixpkgs/pkgs/by-name/ne/nettee/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

42 lines
898 B
Nix

{
stdenv,
lib,
fetchurl,
cmake,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "nettee";
version = "0.3.5";
src = fetchurl {
url = "mirror://sourceforge/nettee/nettee-${finalAttrs.version}.tar.gz";
hash = "sha256-WeZ18CLexdWy8RlHNh0Oo/6KXxzShZT8/xklAWyB8ss=";
};
patches = [ ./fix-cmake-output.patch ];
nativeBuildInputs = [ cmake ];
# additional shell scripts require accudate (not in nixpkgs)
postInstall = ''
rm $out/bin/*.sh
'';
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "-version";
doInstallCheck = true;
meta = {
homepage = "https://sourceforge.net/projects/nettee";
description = ''Network "tee" program'';
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ Profpatsch ];
platforms = lib.platforms.linux;
mainProgram = "nettee";
};
})