uutils-coreutils: add versionCheckHook

This commit is contained in:
Gaetan Lepage
2025-01-09 15:02:12 +01:00
parent 9f752d2c08
commit 0f1e7eedbe
@@ -5,6 +5,8 @@
rustPlatform,
cargo,
python3Packages,
versionCheckHook,
prefix ? "uutils-",
buildMulticallBinary ? true,
}:
@@ -44,6 +46,17 @@ stdenv.mkDerivation rec {
# too many impure/platform-dependent tests
doCheck = false;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgram =
let
prefix' = lib.optionalString (prefix != null) prefix;
in
"${placeholder "out"}/bin/${prefix'}ls";
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
meta = {
description = "Cross-platform Rust rewrite of the GNU coreutils";
longDescription = ''