Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchFromGitHub, rustPlatform, cmake }:
2rustPlatform.buildRustPackage rec {
3 pname = "unused";
4 version = "0.4.0";
5
6 src = fetchFromGitHub {
7 owner = "unused-code";
8 repo = pname;
9 rev = version;
10 sha256 = "sha256-+1M8dUfjjrT4llS0C6WYDyNxJ9QZ5s9v+W185TbgwMw=";
11 };
12
13 nativeBuildInputs = [ cmake ];
14
15 cargoSha256 = "sha256-hCtkR20+xs1UHZP7oJVpJACVGcMQLQmSS1QE2tmIVhs=";
16
17 meta = with lib; {
18 description = "A tool to identify potentially unused code";
19 homepage = "https://unused.codes";
20 license = licenses.mit;
21 maintainers = [ ];
22 };
23}