1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 nix-update-script,
6 versionCheckHook,
7}:
8
9rustPlatform.buildRustPackage (finalAttrs: {
10 pname = "uutils-findutils";
11 version = "0.8.0";
12
13 src = fetchFromGitHub {
14 owner = "uutils";
15 repo = "findutils";
16 tag = finalAttrs.version;
17 hash = "sha256-i+ryTF2hlZFbyFft/769c800FkzL26E4snUsxU79sKY=";
18 };
19
20 cargoHash = "sha256-gtaD2jqnGhoJGw9FAJefnU9BSGIODi/RrhTeB3MC69U=";
21
22 postInstall = ''
23 rm $out/bin/testing-commandline
24 '';
25
26 checkFlags = [
27 # assertion failed: deps.get_output_as_string().contains("./test_data/simple/subdir")
28 "--skip=find::tests::test_find_newer_xy_before_changed_time"
29 ];
30
31 nativeInstallCheckInputs = [ versionCheckHook ];
32 versionCheckProgram = "${placeholder "out"}/bin/find";
33 versionCheckProgramArg = "--version";
34 doInstallCheck = true;
35
36 passthru = {
37 updateScript = nix-update-script { };
38 };
39
40 meta = {
41 changelog = "https://github.com/uutils/findutils/releases/tag/${finalAttrs.version}";
42 description = "Rust implementation of findutils";
43 homepage = "https://github.com/uutils/findutils";
44 license = lib.licenses.mit;
45 mainProgram = "find";
46 maintainers = with lib.maintainers; [
47 defelo
48 drupol
49 ];
50 platforms = lib.platforms.unix;
51 };
52})