nixpkgs/pkgs/development/tools/misc/unused/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
577 B
Nix
Raw Normal View History

{ 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
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;
maintainers = [ ];
2020-12-16 23:56:03 +00:00
};
}