2022-01-14 20:26:08 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "deadnix";
|
2022-09-13 23:55:44 +02:00
|
|
|
version = "0.1.8";
|
2022-01-14 20:26:08 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "astro";
|
|
|
|
repo = "deadnix";
|
|
|
|
rev = "v${version}";
|
2022-09-13 23:55:44 +02:00
|
|
|
sha256 = "sha256-4IK+vv3R3UzF5anH1swypPIzXXZmTCJ2kS2eGUcYvLk=";
|
2022-01-14 20:26:08 +01:00
|
|
|
};
|
|
|
|
|
2022-09-13 23:55:44 +02:00
|
|
|
cargoSha256 = "sha256-GmvSrU7wDOKc22GU43oFJoYCYiVKQ5Oe6qrLQXLtcyM=";
|
2022-01-14 20:26:08 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|