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