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

24 lines
714 B
Nix
Raw Normal View History

2021-05-11 08:05:40 +00:00
{ lib, rustPlatform, fetchFromGitHub, stdenv, libiconv }:
2020-01-21 15:42:06 +00:00
rustPlatform.buildRustPackage rec {
pname = "cargo-about";
2021-03-19 12:08:15 +00:00
version = "0.3.0";
2020-01-21 15:42:06 +00:00
src = fetchFromGitHub {
owner = "EmbarkStudios";
repo = "cargo-about";
rev = version;
2021-03-19 12:08:15 +00:00
sha256 = "sha256-MsXNneKj2xCci1guj1TKcIrX7XByJ5/lWUmjxAsgzPY=";
2020-01-21 15:42:06 +00:00
};
cargoSha256 = "sha256-ssAmY+o+/2+C9sol+PeFlpNwVuN5JNoofgkr3cUW+S4=";
2020-01-21 15:42:06 +00:00
2021-05-11 08:05:40 +00:00
buildInputs = lib.optional stdenv.isDarwin libiconv;
2020-01-21 15:42:06 +00:00
meta = with lib; {
description = "Cargo plugin to generate list of all licenses for a crate";
homepage = "https://github.com/EmbarkStudios/cargo-about";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ evanjs ];
};
}