2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, cmake }:
|
2020-12-25 13:55:36 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "unused";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.2.2";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "unused-code";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "0igpf0y45rrdrwq8bznq0d5nnph0vijvn6fw96mqxhbffz0csbi9";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
cargoSha256 = "1fngn9mmvx7jw8305w465z0nf9acc2cdl7314p77c2rz25z6rlin";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-25 13:55:36 +00:00
|
|
|
description = "A tool to identify potentially unused code";
|
|
|
|
homepage = "https://unused.codes";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.lrworth ];
|
|
|
|
};
|
|
|
|
}
|