diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-04-16 12:01:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 12:01:10 +0000 |
commit | 6be56bfc2e9b55bab869132f31bd74b07f837ac7 (patch) | |
tree | e41785833e5847e2a7ff2ac46f10208375b62138 /pkgs/build-support | |
parent | 83e19bd62ee767a9003088013c8ba61dd7211f95 (diff) | |
parent | faad370edcb37162401be50d45526f52bb16a713 (diff) |
Merge master into staging-next
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/build-graalvm-native-image/default.nix | 2 | ||||
-rw-r--r-- | pkgs/build-support/rust/build-rust-crate/default.nix | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/build-support/build-graalvm-native-image/default.nix b/pkgs/build-support/build-graalvm-native-image/default.nix index d34f562bc5372..760896706ac28 100644 --- a/pkgs/build-support/build-graalvm-native-image/default.nix +++ b/pkgs/build-support/build-graalvm-native-image/default.nix @@ -55,5 +55,7 @@ stdenv.mkDerivation (args // { platforms = graalvmDrv.meta.platforms; # default to executable name mainProgram = executable; + # need to have native-image-installable-svm available + broken = !(builtins.elem "native-image-installable-svm" graalvmDrv.products); } // meta; }) diff --git a/pkgs/build-support/rust/build-rust-crate/default.nix b/pkgs/build-support/rust/build-rust-crate/default.nix index afb938e511828..20b93b1921f84 100644 --- a/pkgs/build-support/rust/build-rust-crate/default.nix +++ b/pkgs/build-support/rust/build-rust-crate/default.nix @@ -277,9 +277,14 @@ crate_: lib.makeOverridable # Create a list of features that are enabled by the crate itself and # through the features argument of buildRustCrate. Exclude features - # with a forward slash, since they are passed through to dependencies. + # with a forward slash, since they are passed through to dependencies, + # and dep: features, since they're internal-only and do nothing except + # enable optional dependencies. crateFeatures = lib.optionals (crate ? features) - (builtins.filter (f: !lib.hasInfix "/" f) (crate.features ++ features)); + (builtins.filter + (f: !(lib.hasInfix "/" f || lib.hasPrefix "dep:" f)) + (crate.features ++ features) + ); libName = if crate ? libName then crate.libName else crate.crateName; libPath = if crate ? libPath then crate.libPath else ""; |