Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63728 from basvandijk/cargo-license-0.2.0-release…
…-19.03 Backport "cargo-license: init at 0.2.0" to release-19.03
- Loading branch information
Showing
3 changed files
with
322 additions
and
0 deletions.
There are no files selected for viewing
297 changes: 297 additions & 0 deletions
297
pkgs/tools/package-management/cargo-license/add-Cargo.lock.patch
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ 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 = "0jp35b21w43r28xn1wrbn0i0jh1rpsb6445w1raycg2c8w6w6mdx"; | ||
|
||
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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters