nixos/pkgs/rip.nix

30 lines
694 B
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
}: let
lock = builtins.fromJSON (builtins.readFile ../flake.lock);
in
rustPlatform.buildRustPackage rec {
pname = "rip";
version = "";
src = fetchFromGitHub {
inherit (lock.nodes.rip.locked) owner repo rev;
sha256 = lock.nodes.rip.locked.narHash;
};
cargoSha256 = "sha256-gzdmDOpWSnX0CVihMf8ODi85P3EFHqdSBVKVQ9FZH7s=";
nativeBuildInputs = [pkg-config];
meta = with lib; {
description = "A safe and ergonomic alternative to rm";
homepage = "https://github.com/nivekuil/rip";
license = with licenses; [gpl3];
maintainers = with maintainers; [];
};
}