tomb: use `util-linuxMinimal` (#446148)

authored by Pol Dellaiera and committed by GitHub 4bcfc3ae a8ade756

+15 -11
+15 -11
pkgs/by-name/to/tomb/package.nix
··· 13 lib, 14 libargon2, 15 lsof, 16 - makeWrapper, 17 nix-update-script, 18 pinentry, 19 stdenvNoCC, 20 - testers, 21 - util-linux, 22 zsh, 23 }: 24 ··· 37 libargon2 38 lsof 39 pinentry 40 - util-linux 41 ]; 42 43 in ··· 52 hash = "sha256-z7LkCes0wg+1bZrNXXy4Lh5VwMotCULJQy5DmCisu+Q="; 53 }; 54 55 - nativeBuildInputs = [ makeWrapper ]; 56 57 buildInputs = [ 58 pinentry ··· 69 ''; 70 71 installPhase = '' 72 - install -Dm755 tomb $out/bin/tomb 73 - install -Dm644 doc/tomb.1 $out/share/man/man1/tomb.1 74 75 wrapProgram $out/bin/tomb \ 76 --prefix PATH : $out/bin:${lib.makeBinPath runtimeDependencies} 77 ''; 78 79 passthru = { 80 - tests.version = testers.testVersion { 81 - package = finalAttrs.finalPackage; 82 - command = "tomb -v"; 83 - }; 84 updateScript = nix-update-script { }; 85 }; 86
··· 13 lib, 14 libargon2, 15 lsof, 16 + makeBinaryWrapper, 17 nix-update-script, 18 pinentry, 19 stdenvNoCC, 20 + util-linuxMinimal, 21 + versionCheckHook, 22 zsh, 23 }: 24 ··· 37 libargon2 38 lsof 39 pinentry 40 + util-linuxMinimal 41 ]; 42 43 in ··· 52 hash = "sha256-z7LkCes0wg+1bZrNXXy4Lh5VwMotCULJQy5DmCisu+Q="; 53 }; 54 55 + nativeBuildInputs = [ makeBinaryWrapper ]; 56 57 buildInputs = [ 58 pinentry ··· 69 ''; 70 71 installPhase = '' 72 + runHook preInstall 73 + 74 + install -D -m755 -t $out/bin tomb 75 + install -D -m644 -t $out/share/man/man1/ doc/tomb.1 76 77 wrapProgram $out/bin/tomb \ 78 --prefix PATH : $out/bin:${lib.makeBinPath runtimeDependencies} 79 + 80 + runHook postInstall 81 ''; 82 83 + doInstallCheck = true; 84 + nativeInstallCheckInputs = [ versionCheckHook ]; 85 + versionCheckProgramArg = "-v"; 86 + 87 passthru = { 88 updateScript = nix-update-script { }; 89 }; 90