mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
0dabacae00
This makes things easier and hopefully fixes the arg too long issue. Fixes #49206.
12 lines
391 B
Bash
12 lines
391 B
Bash
addStackArgs () {
|
|
if [ -d "$1/lib" ] && [[ "$STACK_IN_NIX_EXTRA_ARGS" != *"--extra-lib-dirs=$1/lib"* ]]; then
|
|
STACK_IN_NIX_EXTRA_ARGS+=" --extra-lib-dirs=$1/lib"
|
|
fi
|
|
|
|
if [ -d "$1/include" ] && [[ "$STACK_IN_NIX_EXTRA_ARGS" != *"--extra-include-dirs=$1/include"* ]]; then
|
|
STACK_IN_NIX_EXTRA_ARGS+=" --extra-include-dirs=$1/include"
|
|
fi
|
|
}
|
|
|
|
addEnvHooks "$hostOffset" addStackArgs
|