Skip to content

Commit 8f3a420

Browse files
committed
Merge remote-tracking branch 'origin/master' into hkm/fix-warnings
2 parents 6420d7d + 1498e70 commit 8f3a420

File tree

92 files changed

+14488
-156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+14488
-156
lines changed

builder/comp-builder.nix

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,14 @@ let
371371
echo "package-id $id" >> $out/envDep
372372
else
373373
echo 'ERROR: ${package.identifier.name} id could not be found with ${target-pkg-and-db}'
374-
exit 0
374+
exit 1
375+
fi
376+
if ver=$(${target-pkg-and-db} field ${package.identifier.name} version --simple-output); then
377+
echo "constraint: ${package.identifier.name} == $ver" >> $out/exactDep/cabal.config
378+
echo "constraint: ${package.identifier.name} installed" >> $out/exactDep/cabal.config
379+
else
380+
echo 'ERROR: ${package.identifier.name} version could not be found with ${target-pkg-and-db}'
381+
exit 1
375382
fi
376383
''
377384
else
@@ -389,17 +396,10 @@ let
389396
echo "--dependency=${package.identifier.name}:''${name#z-${package.identifier.name}-z-}=$id" >> $out/exactDep/configure-flags
390397
else
391398
echo 'ERROR: ${package.identifier.name} id could not be found with ${target-pkg-and-db}'
392-
exit 0
399+
exit 1
393400
fi
394401
'')
395402
}
396-
if ver=$(${target-pkg-and-db} field ${package.identifier.name} version --simple-output); then
397-
echo "constraint: ${package.identifier.name} == $ver" >> $out/exactDep/cabal.config
398-
echo "constraint: ${package.identifier.name} installed" >> $out/exactDep/cabal.config
399-
else
400-
echo 'ERROR: ${package.identifier.name} version could not be found with ${target-pkg-and-db}'
401-
exit 0
402-
fi
403403
''}
404404
${(lib.optionalString (haskellLib.isTest componentId || haskellLib.isBenchmark componentId) ''
405405
mkdir -p $out/bin

builder/make-config-files.nix

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,24 @@ let
9393
9494
for l in "${cfgFiles}"; do
9595
if [ -n "$l" ]; then
96-
cp -f "$l/${packageCfgDir}/"*.conf $out/${packageCfgDir}
96+
files=("$l/${packageCfgDir}/"*.conf)
97+
if (( ''${#files[@]} )); then
98+
cp -f "''${files[@]}" $out/${packageCfgDir}
99+
else
100+
echo "$l/${packageCfgDir} didn't contain any *.conf files!"
101+
exit 1
102+
fi
97103
fi
98104
done
99105
for l in "${libs}"; do
100106
if [ -n "$l" ]; then
101-
cp -f "$l/package.conf.d/"*.conf $out/${packageCfgDir}
107+
files=("$l/package.conf.d/"*.conf)
108+
if (( ''${#files[@]} )); then
109+
cp -f "''${files[@]}" $out/${packageCfgDir}
110+
else
111+
echo "$l/package.conf.d didn't contain any *.conf files!"
112+
exit 1
113+
fi
102114
fi
103115
done
104116

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
This file contains a summary of changes to Haskell.nix and `nix-tools`
22
that will impact users.
33

4+
## Feb 8, 2021
5+
* Removed older versions of haskell-language-server from custom-tools
6+
(0.8.0 is in hackage so we can still get that version).
7+
48
## Jan 14, 2021
59
* Added support for cross package refs (with a project). Relative
610
directory references between packages within a project should now

ci.nix

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@
2525
# Update supported-ghc-versions.md to reflect any changes made here.
2626
{
2727
ghc865 = true;
28+
ghc884 = false; # Just included because the native version is needed at eval time
2829
} // nixpkgs.lib.optionalAttrs (nixpkgsName == "R2009") {
29-
ghc883 = false;
3030
ghc884 = true;
31-
ghc8102 = false;
32-
ghc8103 = true;
31+
ghc8104 = true;
3332
ghc810220201118 = false;
3433
} // nixpkgs.lib.optionalAttrs (nixpkgsName == "unstable") {
3534
ghc884 = true;
36-
ghc8103 = true;
35+
ghc8104 = true;
3736
});
3837
systems = nixpkgs: nixpkgs.lib.filterAttrs (_: v: builtins.elem v supportedSystems) {
3938
# I wanted to take these from 'lib.systems.examples', but apparently there isn't one for linux!
@@ -47,13 +46,16 @@
4746
in lib.optionalAttrs (nixpkgsName == "R2009" && (__elem compiler-nix-name ["ghc865" "ghc884"])) {
4847
inherit (lib.systems.examples) ghcjs;
4948
} // lib.optionalAttrs (system == "x86_64-linux" && (
50-
(nixpkgsName == "R2009" && __elem compiler-nix-name ["ghc8101" "ghc8102" "ghc8103" "ghc810220201118"])
49+
(nixpkgsName == "R2009" && __elem compiler-nix-name ["ghc8101" "ghc8102" "ghc8103" "ghc8104" "ghc810220201118"])
5150
|| (nixpkgsName == "R2003" && __elem compiler-nix-name ["ghc865"]))) {
5251
# Windows cross compilation is currently broken on macOS
5352
inherit (lib.systems.examples) mingwW64;
54-
} // lib.optionalAttrs (system == "x86_64-linux") {
53+
} // lib.optionalAttrs (system == "x86_64-linux"
54+
&& !(nixpkgsName == "R2003" && compiler-nix-name == "ghc884")) {
5555
# Musl cross only works on linux
5656
# aarch64 cross only works on linux
57+
# We also skip these for the R2003 was build of ghc884 (we only need the
58+
# native so ifdLevel 1 includes compiler needed in ifdLevel2 eval)
5759
inherit (lib.systems.examples) musl64 aarch64-multiplatform;
5860
};
5961
isDisabled = d:

compiler/ghc/default.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,19 +285,19 @@ stdenv.mkDerivation (rec {
285285
# Sanity checks for https://github.com/input-output-hk/haskell.nix/issues/660
286286
if ! "$out/bin/${targetPrefix}ghc" --version; then
287287
echo "ERROR: Missing file $out/bin/${targetPrefix}ghc"
288-
exit 0
288+
exit 1
289289
fi
290290
if ! "$out/bin/${targetPrefix}ghc-pkg" --version; then
291291
echo "ERROR: Missing file $out/bin/${targetPrefix}ghc-pkg"
292-
exit 0
292+
exit 1
293293
fi
294294
if [[ ! -d "$out/lib/${targetPrefix}ghc-${version}" ]]; then
295295
echo "ERROR: Missing directory $out/lib/${targetPrefix}ghc-${version}"
296-
exit 0
296+
exit 1
297297
fi
298298
if (( $(ls -1 "$out/lib/${targetPrefix}ghc-${version}" | wc -l) < 30 )); then
299299
echo "ERROR: Expected more files in $out/lib/${targetPrefix}ghc-${version}"
300-
exit 0
300+
exit 1
301301
fi
302302
'';
303303

docs/reference/supported-ghc-versions.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The following GHC versions are defined in `haskell.nix` (i.e. there is a derivat
55
- 8.4.4
66
- 8.6.{1,2,3,4,5}
77
- 8.8.{1,2,3,4}
8-
- 8.10.{1,2,3}
8+
- 8.10.{1,2,3,4}
99

1010
The following table shows the nixpkgs/GHC versions which are built by CI, and which of those are tested.
1111
If you use a combination of nixpkgs version and GHC version which is in this table, you should get cache hits from our cache.
@@ -15,13 +15,11 @@ The "nixpkgs versions" refer to the versions that `haskell.nix` provides; if you
1515
|------------------|-------------|---------|
1616
| 20.03 | 8.6.5 | Y |
1717
| 20.09 | 8.6.5 | Y |
18-
| 20.09 | 8.8.3 | N |
1918
| 20.09 | 8.8.4 | Y |
20-
| 20.09 | 8.10.2 | N |
21-
| 20.09 | 8.10.3 | Y |
19+
| 20.09 | 8.10.4 | Y |
2220
| nixpkgs-unstable | 8.6.5 | Y |
2321
| nixpkgs-unstable | 8.8.4 | Y |
24-
| nixpkgs-unstable | 8.10.3 | Y |
22+
| nixpkgs-unstable | 8.10.4 | Y |
2523

2624
See [ci.nix](https://github.com/input-output-hk/haskell.nix/blob/master/ci.nix) for the source of truth about what is built and tested.
2725

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": "b921f6fba13a7b5a282803b903b6951ad0968106",
4-
"date": "2021-02-05T01:15:42+00:00",
5-
"path": "/nix/store/34czr3nhx43gqgf7q6kwc65yjmpfj4s3-hackage.nix-b921f6f",
6-
"sha256": "1y28rz8kcp7nvqsffd3kv3kzdxzarmcpnn062r4jxbdpr0wk29lw",
3+
"rev": "848cd2e840a6cc9ea11108d468fd9cd5fa12ab06",
4+
"date": "2021-02-10T01:11:00+00:00",
5+
"path": "/nix/store/daab1587b53ihlxr4lx8rw8yfp1681rx-hackage.nix-848cd2e",
6+
"sha256": "1awg54wyq2v9qds14wrrmxhh5y4xzrs2fvzmip3ywd3qq50ld54r",
77
"fetchSubmodules": false,
88
"deepClone": false,
99
"leaveDotGit": false

0 commit comments

Comments
 (0)