nixpkgs/pkgs/development/tools/deadnix/default.nix
2022-01-14 20:26:18 +01:00

26 lines
593 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "deadnix";
version = "0.1.3";
src = fetchFromGitHub {
owner = "astro";
repo = "deadnix";
rev = "v${version}";
sha256 = "0ddnxmcr9fncgrqg1vvqcbx49c3lccdpb40h9rvzyldzy9xynzi7";
};
cargoSha256 = "19vgjv70vxgxssrxvdjwfl16bwdbdrpb2wzb3fg9vlz4fhbj2lv9";
meta = with lib; {
description = "Find and remove unused code in .nix source files";
homepage = "https://github.com/astro/deadnix";
license = licenses.gpl3Only;
maintainers = with maintainers; [ astro ];
};
}