depot/third_party/nixpkgs/pkgs/tools/package-management/cargo-license/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

25 lines
693 B
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "cargo-license";
version = "0.3.0";
src = fetchFromGitHub {
owner = "onur";
repo = "cargo-license";
rev = "v${version}";
sha256 = "05a2af84gjyfzhsln0afg16h02pr56jng4xlsg21hicyi1kxjwlf";
};
cargoPatches = [ ./add-Cargo.lock.patch ];
cargoSha256 = "0bkaj54avvib1kipk8ky7gyxfs00qm80jd415zp53hhvinphzb5v";
meta = with lib; {
description = "Cargo subcommand to see license of dependencies";
homepage = "https://github.com/onur/cargo-license";
license = with licenses; [ mit ];
maintainers = with maintainers; [ basvandijk ];
platforms = platforms.all;
};
}