lol
1{ lib
2, fetchFromGitHub
3, rustPlatform
4}:
5
6rustPlatform.buildRustPackage rec {
7 pname = "deadnix";
8 version = "0.1.8";
9
10 src = fetchFromGitHub {
11 owner = "astro";
12 repo = "deadnix";
13 rev = "v${version}";
14 sha256 = "sha256-4IK+vv3R3UzF5anH1swypPIzXXZmTCJ2kS2eGUcYvLk=";
15 };
16
17 cargoSha256 = "sha256-GmvSrU7wDOKc22GU43oFJoYCYiVKQ5Oe6qrLQXLtcyM=";
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 maintainers = with maintainers; [ astro ];
24 };
25}