-
-
Save pikajude/20bfcaad08870e1f01d48fe3b5d0f33d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
buildPhase = '' | |
runHook preBuild | |
export NIX_RUST_BUILD_FLAGS= | |
for dep in $nativeBuildInputs $propagatedNativeBuildInputs; do | |
if [ -e "$dep/lib/.cargo/link-flags" ]; then | |
NIX_RUST_BUILD_FLAGS+=" $(< $dep/lib/.cargo/link-flags)" | |
fi | |
if [ -e "$dep/lib/.cargo/env" ]; then | |
. "$dep/lib/.cargo/env" | |
fi | |
done | |
export NIX_RUST_FLAGS= | |
for dep in $buildInputs $propagatedBuildInputs; do | |
if [ -e "$dep/lib/.cargo/link-flags" ]; then | |
NIX_RUST_FLAGS+=" $(< $dep/lib/.cargo/link-flags)" | |
fi | |
done | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment