{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, }: let lock = builtins.fromJSON (builtins.readFile ../flake.lock); in rustPlatform.buildRustPackage rec { pname = "rip"; version = ""; src = fetchFromGitHub { owner = lock.nodes.rip.locked.owner; repo = lock.nodes.rip.locked.repo; rev = lock.nodes.rip.locked.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; []; }; }