mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
71f189f26f
No need to check for duplicates as it is now handled by setup.sh deduplication. Also should use targetOffset here instead of hostOffset because we are using stack-hook natively.
12 lines
264 B
Bash
12 lines
264 B
Bash
addStackArgs () {
|
|
if [ -n "$(echo $1/lib/lib*)" ]; then
|
|
STACK_IN_NIX_EXTRA_ARGS+=" --extra-lib-dirs=$1/lib"
|
|
fi
|
|
|
|
if [ -d "$1/include" ]; then
|
|
STACK_IN_NIX_EXTRA_ARGS+=" --extra-include-dirs=$1/include"
|
|
fi
|
|
}
|
|
|
|
addEnvHooks "$targetOffset" addStackArgs
|