From ac6524dc7f3e535604a748f794c1626a4179d4e4 Mon Sep 17 00:00:00 2001 From: Evan Stoll Date: Tue, 21 Jan 2020 10:42:06 -0500 Subject: [PATCH] cargo-about: init at 0.1.1 --- .../cargo-about/default.nix | 22 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 23 insertions(+) create mode 100644 pkgs/tools/package-management/cargo-about/default.nix diff --git a/pkgs/tools/package-management/cargo-about/default.nix b/pkgs/tools/package-management/cargo-about/default.nix new file mode 100644 index 000000000000..2e1384693ec2 --- /dev/null +++ b/pkgs/tools/package-management/cargo-about/default.nix @@ -0,0 +1,22 @@ +{ lib, rustPlatform, fetchFromGitHub }: +rustPlatform.buildRustPackage rec { + pname = "cargo-about"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "EmbarkStudios"; + repo = "cargo-about"; + rev = "${version}"; + sha256 = "1n9274np1ibz1s35q1qqajnwj7w4l695js9xdbga5wim18ly622m"; + }; + + cargoSha256 = "0zjvvqw68y6zmjzmd22hh246422x2kxljj73vxywkl18crkakd7k"; + + 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 ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 82317127dacb..15851bde6dd7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8780,6 +8780,7 @@ in defaultCrateOverrides = callPackage ../build-support/rust/default-crate-overrides.nix { }; + cargo-about = callPackage ../tools/package-management/cargo-about { }; cargo-audit = callPackage ../tools/package-management/cargo-audit { inherit (darwin.apple_sdk.frameworks) Security; };