28 lines
621 B
Nix
28 lines
621 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
fetchFromGitHub,
|
||
|
|
rustPlatform,
|
||
|
|
}:
|
||
|
|
|
||
|
|
rustPlatform.buildRustPackage rec {
|
||
|
|
pname = "deadnix";
|
||
|
|
version = "1.3.1";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "astro";
|
||
|
|
repo = "deadnix";
|
||
|
|
rev = "v${version}";
|
||
|
|
hash = "sha256-WrzIqt28RhoFYhCMu5oY5jAdGh0Gv5uryW/1jTX99aY=";
|
||
|
|
};
|
||
|
|
|
||
|
|
cargoHash = "sha256-IgGuWIsDsiMqscO4B876iTCdrR+nI9bpTQOyxjCtjMk=";
|
||
|
|
|
||
|
|
meta = with lib; {
|
||
|
|
description = "Find and remove unused code in .nix source files";
|
||
|
|
homepage = "https://github.com/astro/deadnix";
|
||
|
|
license = licenses.gpl3Only;
|
||
|
|
mainProgram = "deadnix";
|
||
|
|
maintainers = with maintainers; [ astro ];
|
||
|
|
};
|
||
|
|
}
|