Skip to content

Commit b26bd95

Browse files
committed
Merge remote-tracking branch 'origin/master' into hkm/ghc901
2 parents 8f0e693 + 91292dd commit b26bd95

File tree

4 files changed

+25
-22
lines changed

4 files changed

+25
-22
lines changed

builder/comp-builder.nix

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ let self =
3030
( haskellLib.isTest componentId &&
3131
lib.any (x: x.identifier.name or "" == "cabal-doctest") package.setup-depends
3232
)
33-
, allComponent # Used when `configureAllComponents` is set to get a suitable configuration.
33+
, allComponent # Used when `configureAllComponents` is set to get a suitable configuration.
3434

3535
, build-tools ? component.build-tools
3636
, pkgconfig ? component.pkgconfig
@@ -259,7 +259,7 @@ let
259259
(lib.optionalString (cleanSrc.subDir != "") ''
260260
cd ${lib.removePrefix "/" cleanSrc.subDir}
261261
''
262-
) +
262+
) +
263263
(if cabalFile != null
264264
then ''cat ${cabalFile} > ${package.identifier.name}.cabal''
265265
else
@@ -485,19 +485,21 @@ let
485485
# DB (probably empty unless this is a library component).
486486
# We also have to remove any refernces to $out to avoid
487487
# circular references.
488-
if configureAllComponents
489-
then ''
490-
mv dist dist-tmp-dir
491-
mkdir -p dist/build
488+
lib.optionalString (configureAllComponents || keepSource) ''
489+
mv dist dist-tmp-dir
490+
mkdir -p dist/build
491+
if [ -d dist-tmp-dir/build/${componentId.cname} ]; then
492492
mv dist-tmp-dir/build/${componentId.cname}/autogen dist/build/
493-
mv dist-tmp-dir/package.conf.inplace dist/
494-
remove-references-to -t $out dist/build/autogen/*
495-
rm -rf dist-tmp-dir
496-
''
497-
else lib.optionalString keepSource ''
498-
rm -rf dist
499-
''
500-
) + (lib.optionalString (haskellLib.isTest componentId) ''
493+
else
494+
mv dist-tmp-dir/build/autogen dist/build/
495+
fi
496+
mv dist-tmp-dir/package.conf.inplace dist/
497+
remove-references-to -t $out dist/build/autogen/*
498+
rm -rf dist-tmp-dir
499+
''
500+
) + (lib.optionalString (keepSource && haskellLib.isLibrary componentId) ''
501+
remove-references-to -t $out ${name}.conf
502+
'') + (lib.optionalString (haskellLib.isTest componentId) ''
501503
echo The test ${package.identifier.name}.components.tests.${componentId.cname} was built. To run the test build ${package.identifier.name}.checks.${componentId.cname}.
502504
'');
503505

hackage-src.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"url": "https://github.com/input-output-hk/hackage.nix",
3-
"rev": "eec7087871114b53d42093d2f0832168d0491f6e",
4-
"date": "2021-03-20T01:10:35+00:00",
5-
"path": "/nix/store/3k96lxnmwh5cpanz56g482qdh3wczk4x-hackage.nix-eec7087",
6-
"sha256": "0yc9wgs4mk1cjccgdnm6mwrcyx45qyiz49l465zy4gp04wshwbyd",
3+
"rev": "85dcd3f167a11a7f34d746065eef21f161a588df",
4+
"date": "2021-03-26T01:12:31+00:00",
5+
"path": "/nix/store/4rx7i14b4si0d12kp393ldbhykznbcqy-hackage.nix-85dcd3f",
6+
"sha256": "00srjmf525kcf1mfl22k3z159nkqw95zbsb994l9fzgpyahw6mr2",
77
"fetchSubmodules": false,
88
"deepClone": false,
99
"leaveDotGit": false

overlays/musl.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ final: prev: prev.lib.optionalAttrs prev.stdenv.hostPlatform.isMusl ({
99
zlib = prev.zlib.override { splitStaticOutput = false; };
1010

1111
# and a few more packages that need their static libs explicitly enabled
12+
bzip2 = prev.bzip2.overrideAttrs (_: { dontDisableStatic = true; });
1213
gmp = prev.gmp.override { withStatic = true; };
1314
ncurses = prev.ncurses.override { enableStatic = true; };
1415
libsodium = prev.libsodium.overrideAttrs (_: { dontDisableStatic = true; });

stackage-src.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"url": "https://github.com/input-output-hk/stackage.nix",
3-
"rev": "736c6784ddc081688c40fd9c4be1fad22360fe42",
4-
"date": "2021-03-19T01:05:52+00:00",
5-
"path": "/nix/store/aqr73x5kbx2b87p5x6hcag0kzrqv9b3l-stackage.nix-736c678",
6-
"sha256": "17x0aakrcpv98abkyrr1drfhjb1q0hscg2aqksy1kw4nq411551q",
3+
"rev": "08a56e26a089d74d998c4e439a6034894326044a",
4+
"date": "2021-03-26T01:03:31+00:00",
5+
"path": "/nix/store/v1ds4d57lyp5s36ih2ihigqiw9z66ylm-stackage.nix-08a56e2",
6+
"sha256": "13mqm9bh5siik7msgxcq1439h977g4nsrf91vjw5dd2as4ghwvb3",
77
"fetchSubmodules": false,
88
"deepClone": false,
99
"leaveDotGit": false

0 commit comments

Comments
 (0)