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