Unverified Commit f0082800 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

rip2: init at 0.9.0 (#353742)

parents fa5c424e 9aa30e6d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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";
+36 −0
Original line number Diff line number Diff line
{
  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";
  };
}