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

24 lines
597 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform, cmake }:
2020-12-16 23:56:03 +00:00
rustPlatform.buildRustPackage rec {
pname = "unused";
2021-08-23 06:28:00 +00:00
version = "0.2.3";
2020-12-16 23:56:03 +00:00
src = fetchFromGitHub {
owner = "unused-code";
repo = pname;
rev = version;
2021-08-23 06:28:00 +00:00
sha256 = "sha256-1R50oCVvk+XJG4EhLusY1aY6RjWNeZvlIDS8PJXIA7o=";
2020-12-16 23:56:03 +00:00
};
nativeBuildInputs = [ cmake ];
2021-08-23 06:28:00 +00:00
cargoSha256 = "sha256-PjCR+kHlgPWkTkhN0idotGmLSe/FaKkgI9AMEJtoRz8=";
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 = [ maintainers.lrworth ];
};
}