Skip to content

Commit

Permalink
unused: init at 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lrworth authored and peterhoeg committed Dec 22, 2020
1 parent e18b62a commit 160ba18
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pkgs/development/tools/misc/unused/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ stdenv, fetchFromGitHub, rustPlatform, cmake }:
rustPlatform.buildRustPackage rec {
pname = "unused";
version = "0.2.1";

src = fetchFromGitHub {
owner = "unused-code";
repo = pname;
rev = version;
sha256 = "06r6m7k570rdm9szghnp3g4r6ij0vp8apfanqzzxv2hd7gf8v62b";
};

nativeBuildInputs = [ cmake ];

cargoSha256 = "1c0gj2wp0nydv0binxj3ikm5sm6y5z3pklp5b06dgvq02licz57a";

meta = with stdenv.lib; {
description = "A tool to identify potentially unused code";
homepage = "https://unused.codes";
license = licenses.mit;
maintainers = [ maintainers.lrworth ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12228,6 +12228,8 @@ in

universal-ctags = callPackage ../development/tools/misc/universal-ctags { };

unused = callPackage ../development/tools/misc/unused { };

vagrant = callPackage ../development/tools/vagrant {};

vala-language-server = callPackage ../development/tools/vala-language-server {};
Expand Down

0 comments on commit 160ba18

Please sign in to comment.