diff options
-rw-r--r-- | pkgs/development/tools/rust/cargo-feature-set/default.nix | 23 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 3 |
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 { }; |