2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, cmake }:
|
2020-12-16 23:56:03 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "unused";
|
2022-03-25 18:04:40 +00:00
|
|
|
version = "0.4.0";
|
2020-12-16 23:56:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "unused-code";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-03-25 18:04:40 +00:00
|
|
|
sha256 = "sha256-+1M8dUfjjrT4llS0C6WYDyNxJ9QZ5s9v+W185TbgwMw=";
|
2020-12-16 23:56:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2022-03-25 18:04:40 +00:00
|
|
|
cargoSha256 = "sha256-hCtkR20+xs1UHZP7oJVpJACVGcMQLQmSS1QE2tmIVhs=";
|
2020-12-16 23:56:03 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-12-16 23:56:03 +00:00
|
|
|
description = "A tool to identify potentially unused code";
|
|
|
|
homepage = "https://unused.codes";
|
|
|
|
license = licenses.mit;
|
2022-06-22 23:53:23 +00:00
|
|
|
maintainers = [ ];
|
2020-12-16 23:56:03 +00:00
|
|
|
};
|
|
|
|
}
|