52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
fetchFromGitHub,
|
||
|
|
rustPlatform,
|
||
|
|
nix-update-script,
|
||
|
|
versionCheckHook,
|
||
|
|
}:
|
||
|
|
|
||
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||
|
|
pname = "uutils-findutils";
|
||
|
|
version = "0.8.0";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "uutils";
|
||
|
|
repo = "findutils";
|
||
|
|
tag = finalAttrs.version;
|
||
|
|
hash = "sha256-i+ryTF2hlZFbyFft/769c800FkzL26E4snUsxU79sKY=";
|
||
|
|
};
|
||
|
|
|
||
|
|
cargoHash = "sha256-gtaD2jqnGhoJGw9FAJefnU9BSGIODi/RrhTeB3MC69U=";
|
||
|
|
|
||
|
|
postInstall = ''
|
||
|
|
rm $out/bin/testing-commandline
|
||
|
|
'';
|
||
|
|
|
||
|
|
checkFlags = [
|
||
|
|
# assertion failed: deps.get_output_as_string().contains("./test_data/simple/subdir")
|
||
|
|
"--skip=find::tests::test_find_newer_xy_before_changed_time"
|
||
|
|
];
|
||
|
|
|
||
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||
|
|
versionCheckProgram = "${placeholder "out"}/bin/find";
|
||
|
|
versionCheckProgramArg = "--version";
|
||
|
|
doInstallCheck = true;
|
||
|
|
|
||
|
|
passthru = {
|
||
|
|
updateScript = nix-update-script { };
|
||
|
|
};
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
changelog = "https://github.com/uutils/findutils/releases/tag/${finalAttrs.version}";
|
||
|
|
description = "Rust implementation of findutils";
|
||
|
|
homepage = "https://github.com/uutils/findutils";
|
||
|
|
license = lib.licenses.mit;
|
||
|
|
mainProgram = "find";
|
||
|
|
maintainers = with lib.maintainers; [
|
||
|
|
defelo
|
||
|
|
];
|
||
|
|
platforms = lib.platforms.unix;
|
||
|
|
};
|
||
|
|
})
|