Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 898 B view raw
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 cmake, 6 versionCheckHook, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "nettee"; 11 version = "0.3.5"; 12 13 src = fetchurl { 14 url = "mirror://sourceforge/nettee/nettee-${finalAttrs.version}.tar.gz"; 15 hash = "sha256-WeZ18CLexdWy8RlHNh0Oo/6KXxzShZT8/xklAWyB8ss="; 16 }; 17 18 patches = [ ./fix-cmake-output.patch ]; 19 20 nativeBuildInputs = [ cmake ]; 21 22 # additional shell scripts require accudate (not in nixpkgs) 23 postInstall = '' 24 rm $out/bin/*.sh 25 ''; 26 27 nativeInstallCheckInputs = [ 28 versionCheckHook 29 ]; 30 versionCheckProgramArg = "-version"; 31 doInstallCheck = true; 32 33 meta = { 34 homepage = "https://sourceforge.net/projects/nettee"; 35 description = ''Network "tee" program''; 36 license = lib.licenses.gpl2Only; 37 maintainers = with lib.maintainers; [ Profpatsch ]; 38 platforms = lib.platforms.linux; 39 mainProgram = "nettee"; 40 }; 41})