2019-06-23 23:20:57 +01:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
2020-03-09 01:06:00 +00:00
|
|
|
|
2019-06-23 23:20:57 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "cargo-license";
|
2019-12-16 11:55:41 +00:00
|
|
|
version = "0.3.0";
|
2019-06-23 23:20:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "onur";
|
|
|
|
repo = "cargo-license";
|
|
|
|
rev = "v${version}";
|
2019-12-16 11:55:41 +00:00
|
|
|
sha256 = "05a2af84gjyfzhsln0afg16h02pr56jng4xlsg21hicyi1kxjwlf";
|
2019-06-23 23:20:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoPatches = [ ./add-Cargo.lock.patch ];
|
|
|
|
|
2021-05-07 12:00:49 +01:00
|
|
|
cargoSha256 = "1gda6m5g545fgx8ash96w408mxi5rb8hrv73c0xs0gx7hfyx5zcj";
|
2019-06-23 23:20:57 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cargo subcommand to see license of dependencies";
|
2019-06-25 14:31:55 +01:00
|
|
|
homepage = "https://github.com/onur/cargo-license";
|
2019-06-23 23:20:57 +01:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ basvandijk ];
|
|
|
|
};
|
|
|
|
}
|