summaryrefslogtreecommitdiffstats
path: root/pkgs/development/tools/unused/default.nix
blob: 2714a5d75bf64cb4d2f8db156d5c51695fed5f9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ rustPlatform, fetchFromGitHub, lib, stdenv
, pkgconfig
, cmake
}:

rustPlatform.buildRustPackage rec {
  pname = "unused";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "unused-code";
    repo = "unused";
    rev = version;
    sha256 = "0ympdwqv9l66cn1cmg7g2d1rsq34a2bp5yv22ljr859hbk3w1jbq";
  };

  nativeBuildInputs = [ pkgconfig cmake ];

  cargoSha256 = "1scs4yjf70k54i94d520xkd1q4wbqfcs5048j7zhiphmkykx22br";

  meta = with lib; {
    homepage = "https://github.com/unused-code/unused/";
    license = licenses.mit;
    description = "A tool to identify potentially unused code";
    maintainers = with maintainers; [ matthiasbeyer ];
    platforms = platforms.unix;
  };
}