repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git]
/
pkgs
/
development
/
haskell-modules
/
stack-hook.sh
blob
44c184a5624ac77cafbe625c02f00ec69c8556df
1
addStackArgs
() {
2
if
[
-n
"$(echo
$1
/lib/lib*)"
];
then
3
STACK_IN_NIX_EXTRA_ARGS
+=
" --extra-lib-dirs=
$1
/lib"
4
fi
5
6
if
[
-d
"
$1
/include"
];
then
7
STACK_IN_NIX_EXTRA_ARGS
+=
" --extra-include-dirs=
$1
/include"
8
fi
9
}
10
11
addEnvHooks
"
$targetOffset
"
addStackArgs