forked from mirrors/nixpkgs
24 lines
646 B
Nix
24 lines
646 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
rustPlatform.buildRustPackage rec {
|
|
name = "cargo-license-${version}";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "onur";
|
|
repo = "cargo-license";
|
|
rev = "v${version}";
|
|
sha256 = "0xxgl9d695ncrxz29125wag285dwxpwc3fym0ixgj5fqbnkbx75g";
|
|
};
|
|
|
|
cargoPatches = [ ./add-Cargo.lock.patch ];
|
|
|
|
cargoSha256 = "0jc84v8fxzzyfkcnfr9vrdblw5vdk54nzpch5lcarzfsarncqxw7";
|
|
|
|
meta = with lib; {
|
|
description = "Cargo subcommand to see license of dependencies";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ basvandijk ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|