Files

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

42 lines
898 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
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";
};
})