diff --git a/pkgs/by-name/uu/uutils-findutils/package.nix b/pkgs/by-name/uu/uutils-findutils/package.nix new file mode 100644 index 000000000000..d7af8dafed54 --- /dev/null +++ b/pkgs/by-name/uu/uutils-findutils/package.nix @@ -0,0 +1,53 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + nix-update-script, + versionCheckHook, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "uutils-findutils"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "uutils"; + repo = "findutils"; + tag = finalAttrs.version; + hash = "sha256-EEyrXG9jybtYoBvjiXTCNg6/1WPchEGJcldB6Gqgmdc="; + }; + + useFetchCargoVendor = true; + cargoHash = "sha256-nZOa7O0S9ykFM9sH6aqlAPtv3hWKF/vAXZYNRnjcOj4="; + + 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 + drupol + ]; + platforms = lib.platforms.unix; + }; +})