nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at fix-function-merge 26 lines 616 B view raw
1{ lib 2, fetchFromGitHub 3, rustPlatform 4}: 5 6rustPlatform.buildRustPackage rec { 7 pname = "deadnix"; 8 version = "1.2.1"; 9 10 src = fetchFromGitHub { 11 owner = "astro"; 12 repo = "deadnix"; 13 rev = "v${version}"; 14 hash = "sha256-xaaXGzTd+t1GjD2KpiS/c8acv6bXufv/lTN+ACRGVJw="; 15 }; 16 17 cargoHash = "sha256-14onbdsactPJ27GTzG+culsdnwHvGdDXwBD9ZMq192Q="; 18 19 meta = with lib; { 20 description = "Find and remove unused code in .nix source files"; 21 homepage = "https://github.com/astro/deadnix"; 22 license = licenses.gpl3Only; 23 mainProgram = "deadnix"; 24 maintainers = with maintainers; [ astro ]; 25 }; 26}