diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 96a3c478cd4b..f419fa734a09 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14275,6 +14275,12 @@ githubId = 38543128; name = "Miles Breslin"; }; + milescranmer = { + email = "miles.cranmer@gmail.com"; + github = "MilesCranmer"; + githubId = 7593028; + name = "Miles Cranmer"; + }; milibopp = { email = "contact@ebopp.de"; github = "milibopp"; diff --git a/pkgs/by-name/ri/rip2/package.nix b/pkgs/by-name/ri/rip2/package.nix new file mode 100644 index 000000000000..eba6c5f81484 --- /dev/null +++ b/pkgs/by-name/ri/rip2/package.nix @@ -0,0 +1,36 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + versionCheckHook, +}: + +rustPlatform.buildRustPackage rec { + pname = "rip2"; + version = "0.9.0"; + + src = fetchFromGitHub { + owner = "MilesCranmer"; + repo = "rip2"; + rev = "v${version}"; + hash = "sha256-9leLWfPilDQHzQRzTUjAFt9olTPEL4GcQgYFWZu3dug="; + }; + + cargoHash = "sha256-l6rbeiyIsr1csBcp+428TpQYSs9RvfJutGoL/wtSGR8="; + + # TODO: Unsure why this test fails, but not a major issue so + # skipping for now. + checkFlags = [ "--skip=test_filetypes::file_type_3___fifo__" ]; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgram = "${placeholder "out"}/bin/rip"; + + meta = { + description = "Safe and ergonomic alternative to rm"; + homepage = "https://github.com/MilesCranmer/rip2"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ milescranmer ]; + mainProgram = "rip"; + }; +}