nixpkgs/pkgs/development/tools/deadnix/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
591 B
Nix
Raw Normal View History

2022-01-14 19:26:08 +00:00
{ lib
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "deadnix";
2022-06-19 10:11:11 +00:00
version = "0.1.6";
2022-01-14 19:26:08 +00:00
src = fetchFromGitHub {
owner = "astro";
repo = "deadnix";
rev = "v${version}";
2022-06-19 10:11:11 +00:00
sha256 = "sha256-a3zEPblkvj9cjGEQB6LKqB+h8C2df7p+IgkwqsUptmY=";
2022-01-14 19:26:08 +00:00
};
2022-06-19 10:11:11 +00:00
cargoSha256 = "sha256-zMVXl7kJEavv5zfSm0bTYtd8J3j/LtY3ikPUK2hod+E=";
2022-01-14 19:26:08 +00:00
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 ];
};
}