tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
cargoBuildHook: Fix features with __structuredAttrs
Janne Heß
2 years ago
6486868c
c81c2414
+8
-1
1 changed file
expand all
collapse all
unified
split
pkgs
build-support
rust
hooks
cargo-build-hook.sh
+8
-1
pkgs/build-support/rust/hooks/cargo-build-hook.sh
···
25
25
fi
26
26
27
27
if [ -n "${cargoBuildFeatures-}" ]; then
28
28
-
cargoBuildFeaturesFlag="--features=${cargoBuildFeatures// /,}"
28
28
+
if [ -n "$__structuredAttrs" ]; then
29
29
+
OLDIFS="$IFS"
30
30
+
IFS=','; cargoBuildFeaturesFlag="--features=${cargoBuildFeatures[*]}"
31
31
+
IFS="$OLDIFS"
32
32
+
unset OLDIFS
33
33
+
else
34
34
+
cargoBuildFeaturesFlag="--features=${cargoBuildFeatures// /,}"
35
35
+
fi
29
36
fi
30
37
31
38
(