Skip to content

Commit 2a2d2dd

Browse files
committed
Fix unlit and other lib/bin tools for ghc
1 parent 5a12019 commit 2a2d2dd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

builder/comp-builder.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ let
188188
# the target dir for haddock documentation
189189
docdir = docoutput: docoutput + "/share/doc/" + componentId.cname;
190190

191-
doHaddock' = doHaddock
191+
doHaddock' = doHaddock
192192
&& (haskellLib.isLibrary componentId)
193193
&& stdenv.hostPlatform == stdenv.buildPlatform;
194194

builder/with-package-wrapper.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ in runCommand "${ghc.name}-with-${package.identifier.name}" {
3636
# ...and replace package database with the one from target package config.
3737
rm -rf ${libDir}
3838
mkdir -p ${libDir}
39+
# ... yet retain the lib/.../bin directory. This contains `unlit' and friends.
40+
${lndir}/bin/lndir -silent ${ghc}/lib/${ghcCommand}-${ghc.version}/bin ${libDir}
41+
3942
ln -s ${configFiles}/package.conf.d ${packageCfgDir}
4043
4144
# Wrap compiler executables with correct env variables.

0 commit comments

Comments
 (0)