From 09ce55d9ab03c81dc11f6e98aacd27abd7df0332 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 12 Aug 2022 09:02:26 +0200 Subject: cargo-feature-set: init at 0.5.0 Signed-off-by: Matthias Beyer --- .../tools/rust/cargo-feature-set/default.nix | 23 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/tools/rust/cargo-feature-set/default.nix diff --git a/pkgs/development/tools/rust/cargo-feature-set/default.nix b/pkgs/development/tools/rust/cargo-feature-set/default.nix new file mode 100644 index 000000000000..0b282520f23d --- /dev/null +++ b/pkgs/development/tools/rust/cargo-feature-set/default.nix @@ -0,0 +1,23 @@ +{ lib, stdenv, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "cargo-feature-set"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "badboy"; + repo = "cargo-feature-set"; + rev = "v${version}"; + sha256 = "sha256-hKdH+vWtigKtD1rgnOEEULZ9dxh/U/QALmocxOJdEG4="; + }; + + cargoSha256 = "sha256-J7iJ//9q785jGaL143jxbhvr8UWBk7NN8S3Hh65dieA="; + + meta = with lib; { + description = "Extract the features for every compiled crate from cargo metadata"; + homepage = "https://github.com/badboy/cargo-feature-set"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ matthiasbeyer ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 018e6dfc9084..fa58d2b7bac7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14194,6 +14194,9 @@ with pkgs; inherit (linuxPackages) perf; }; + cargo-feature-set = callPackage ../development/tools/rust/cargo-feature-set { + }; + carnix = (callPackage ../build-support/rust/carnix.nix { }).carnix { }; defaultCrateOverrides = callPackage ../build-support/rust/default-crate-overrides.nix { }; -- cgit v1.2.3