2022-01-14 19:26:08 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "deadnix";
|
2023-04-29 18:41:01 +00:00
|
|
|
version = "1.2.0";
|
2022-01-14 19:26:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "astro";
|
|
|
|
repo = "deadnix";
|
|
|
|
rev = "v${version}";
|
2023-04-29 18:41:01 +00:00
|
|
|
sha256 = "sha256-IcxupBqG3/h13sHgNYcO/oHKYfnK1LYd8Ehercz/Z/w=";
|
2022-01-14 19:26:08 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 18:41:01 +00:00
|
|
|
cargoSha256 = "sha256-8l4V9AWrBBnEsdZ0Vs4ruPdu+WQVo2ZbJBmhmo23s2g=";
|
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;
|
2023-08-05 01:57:13 +00:00
|
|
|
mainProgram = "deadnix";
|
2022-01-14 19:26:08 +00:00
|
|
|
maintainers = with maintainers; [ astro ];
|
|
|
|
};
|
|
|
|
}
|