1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

rip2: init at 0.9.0 (#353742)

This commit is contained in:
Aleksana 2024-11-08 16:59:40 +08:00 committed by GitHub
commit f00828002c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 42 additions and 0 deletions

View file

@ -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";

View file

@ -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";
};
}