Skip to content

Commit

Permalink
generic-stack-builder: try to fix arg max issue
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbauer committed Nov 18, 2018
1 parent 245f255 commit 83fef59
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkgs/development/haskell-modules/generic-stack-builder.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ let stackCmd = "stack --internal-re-exec-version=${stack.version}";
# Add all dependencies in buildInputs including propagated ones to
# STACK_IN_NIX_EXTRA_ARGS.
addStackArgsHook = ''
for pkg in ''${pkgsHostHost[@]} ''${pkgsHostBuild[@]} ''${pkgsHostTarget[@]}
for pkg in ''${pkgsHostTarget[@]}
do
[ -d "$pkg/lib" ] && \
export STACK_IN_NIX_EXTRA_ARGS+=" --extra-lib-dirs=$pkg/lib"
if [ -d "$pkg/lib" ]; then
if [ -n "$(echo $pkg/lib/lib*)" ]; then
export STACK_IN_NIX_EXTRA_ARGS+=" --extra-lib-dirs=$pkg/lib"
fi
fi
[ -d "$pkg/include" ] && \
export STACK_IN_NIX_EXTRA_ARGS+=" --extra-include-dirs=$pkg/include"
done
Expand Down

0 comments on commit 83fef59

Please sign in to comment.