summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2022-08-12 09:02:26 +0200
committerMatthias Beyer <mail@beyermatthias.de>2022-08-12 09:02:26 +0200
commit09ce55d9ab03c81dc11f6e98aacd27abd7df0332 (patch)
treed2e0125c376d39243a0bc0211688720635a2f6db
parent74a50898fdece3efe305386a07272fd09a1a26b4 (diff)
cargo-feature-set: init at 0.5.0add-cargo-feature-set
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--pkgs/development/tools/rust/cargo-feature-set/default.nix23
-rw-r--r--pkgs/top-level/all-packages.nix3
2 files changed, 26 insertions, 0 deletions
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 { };