linux_6_1: 6.1.117 -> 6.1.118
[NixPkgs.git] / pkgs / development / haskell-modules / stack-hook.sh
blob44c184a5624ac77cafbe625c02f00ec69c8556df
1 addStackArgs () {
2 if [ -n "$(echo $1/lib/lib*)" ]; then
3 STACK_IN_NIX_EXTRA_ARGS+=" --extra-lib-dirs=$1/lib"
4 fi
6 if [ -d "$1/include" ]; then
7 STACK_IN_NIX_EXTRA_ARGS+=" --extra-include-dirs=$1/include"
8 fi
11 addEnvHooks "$targetOffset" addStackArgs