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

28 lines
777 B
Nix
Raw Normal View History

2019-06-23 22:20:57 +00:00
{ lib, rustPlatform, fetchFromGitHub }:
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 ];
# Delete this on next update; see #79975 for details
legacyCargoFetcher = true;
cargoSha256 = "0ksxvbrx8d8d09i167mdrhz5m46nbr6l0vyn7xpdanmha31xiaz9";
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 ];
platforms = platforms.all;
};
}