nixpkgs/pkgs/tools/package-management/cargo-license/default.nix

25 lines
662 B
Nix
Raw Normal View History

2019-06-23 22:20:57 +00:00
{ lib, rustPlatform, fetchFromGitHub }:
2019-06-23 22:20:57 +00:00
rustPlatform.buildRustPackage rec {
2019-08-31 11:41:23 +00:00
pname = "cargo-license";
version = "0.3.0";
2019-06-23 22:20:57 +00:00
src = fetchFromGitHub {
owner = "onur";
repo = "cargo-license";
rev = "v${version}";
sha256 = "05a2af84gjyfzhsln0afg16h02pr56jng4xlsg21hicyi1kxjwlf";
2019-06-23 22:20:57 +00:00
};
cargoPatches = [ ./add-Cargo.lock.patch ];
cargoSha256 = "0bkaj54avvib1kipk8ky7gyxfs00qm80jd415zp53hhvinphzb5v";
2019-06-23 22:20:57 +00:00
meta = with lib; {
description = "Cargo subcommand to see license of dependencies";
2019-06-25 13:31:55 +00:00
homepage = "https://github.com/onur/cargo-license";
2019-06-23 22:20:57 +00:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ basvandijk ];
};
}