Skip to content

Commit 701c83f

Browse files
authored
Update nixpkgs pins to include 20.03 (#557)
* Update nixpkgs pins to include 20.03, wobble - Add 20.03 - Remove 19.03 (and old 18.09 file) - Update 19.09 to latest - Update github pin to 20.03 - Remove workarounds for 19.03 * Mark openssl as allowedInsecure * Force python3 for mkdocs
1 parent a826b77 commit 701c83f

15 files changed

+39
-106
lines changed

build.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ in rec {
2525
update-stackage = haskell.callPackage ./scripts/update-stackage.nix {};
2626
update-pins = haskell.callPackage ./scripts/update-pins.nix {};
2727
update-docs = pkgs.buildPackages.callPackage ./scripts/update-docs.nix {
28-
generatedOptions = import ./scripts/options-doc.nix {
29-
# nixpkgs 19.09 changes "Option has no description" from an
30-
# error into a warning. That is quite helpful when hardly any
31-
# of our options are documented, thanks @oxij.
32-
pkgs = import (import ./nixpkgs/default.nix).nixpkgs-1909 {};
33-
};
28+
generatedOptions = pkgs.callPackage ./scripts/options-doc.nix { };
3429
};
3530
# Because this is going to be used to test caching on hydra, it must not
3631
# use the darcs package from the haskell.nix we are testing. For that reason

builder/default.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ let
3939

4040

4141
hoogleLocal = let
42-
# Use the latest default nixpkgs hoogle.nix, as the 19.03 one does not work with cross compilers
43-
nixpkgsHoogleLocal = import ((import (import ../nixpkgs).nixpkgs-default {}).path + /pkgs/development/haskell-modules/hoogle.nix);
42+
nixpkgsHoogle = import (pkgs.path + /pkgs/development/haskell-modules/hoogle.nix);
4443
in { packages ? [], hoogle ? pkgs.buildPackages.haskell-nix.haskellPackages.hoogle.components.exes.hoogle }:
45-
haskellLib.weakCallPackage pkgs nixpkgsHoogleLocal {
44+
haskellLib.weakCallPackage pkgs nixpkgsHoogle {
4645
# For musl we can use haddock from the buildGHC
4746
ghc = if stdenv.hostPlatform.isLinux && stdenv.targetPlatform.isMusl
4847
then ghc.buildGHC

ci.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ let
88
inherit (import ./ci-lib.nix) dimension platformFilterGeneric filterAttrsOnlyRecursive;
99
inherit (import ./default.nix {}) sources nixpkgsArgs;
1010
nixpkgsVersions = {
11-
"R1903" = "nixpkgs-1903";
1211
"R1909" = "nixpkgs-1909";
12+
"R2003" = "nixpkgs-2003";
1313
};
1414
systems = nixpkgs: nixpkgs.lib.filterAttrs (_: v: builtins.elem v supportedSystems) {
1515
# I wanted to take these from 'lib.systems.examples', but apparently there isn't one for linux!
@@ -20,8 +20,8 @@ let
2020
# We need to use the actual nixpkgs version we're working with here, since the values
2121
# of 'lib.systems.examples' are not understood between all versions
2222
let lib = nixpkgs.lib;
23-
in lib.optionalAttrs (system == "x86_64-linux" || nixpkgsName == "R1903") {
24-
# Windows cross compilation is currently broken on macOS for nixpkgs 19.09 (works on 19.03)
23+
in lib.optionalAttrs (system == "x86_64-linux") {
24+
# Windows cross compilation is currently broken on macOS
2525
inherit (lib.systems.examples) mingwW64;
2626
} // lib.optionalAttrs (system == "x86_64-linux") {
2727
# Musl cross only works on linux

config.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
wine.build = "wine64";
77
wine.release = "stable";
88

9+
# This is marked insecure on 20.03, but many packages still depend on it
10+
permittedInsecurePackages = [ "openssl-1.0.2u" ];
11+
912
# sadly we need to patch GHC a bit.
1013
packageOverrides = ps: with ps; let
1114
in rec {

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
let haskellNix = rec {
22
sources = {
3-
inherit (import ./nixpkgs/default.nix) nixpkgs-1903 nixpkgs-1909 nixpkgs-default;
3+
inherit (import ./nixpkgs/default.nix) nixpkgs-1909 nixpkgs-2003 nixpkgs-default;
44
};
55

66
config = import ./config.nix;

nixpkgs/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let
1010
};
1111
in
1212
{
13+
nixpkgs-2003 = fetch (./. + "/release-20.03.json");
1314
nixpkgs-1909 = fetch (./. + "/release-19.09.json");
14-
nixpkgs-1903 = fetch (./. + "/release-19.03.json");
1515
nixpkgs-default = fetch (./. + "/github.json");
1616
}

nixpkgs/github.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"url": "https://github.com/NixOS/nixpkgs",
3-
"rev": "a81842b6994ce710ebad13303fde29438f610e8c",
4-
"date": "2020-03-07T09:04:39+01:00",
5-
"sha256": "0ch8mnx4iicsh8j6a2a6sgdshbgn6wxhzgf35pnq72avc9pdf2xi",
6-
"fetchSubmodules": false
3+
"rev": "cac363c661817666e43d047addfaa722610d425f",
4+
"date": "2020-03-24T13:44:58+01:00",
5+
"sha256": "0fi8hgddy8qh2jrsa40jw7jxnr5lrhq2ji6a2xbndllivhzc31kf",
6+
"fetchSubmodules": false,
7+
"deepClone": false,
8+
"leaveDotGit": false
79
}

nixpkgs/release-18.09.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

nixpkgs/release-19.03.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

nixpkgs/release-19.09.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"url": "https://github.com/NixOS/nixpkgs",
3-
"rev": "a81842b6994ce710ebad13303fde29438f610e8c",
4-
"date": "2020-03-07T09:04:39+01:00",
5-
"sha256": "0ch8mnx4iicsh8j6a2a6sgdshbgn6wxhzgf35pnq72avc9pdf2xi",
6-
"fetchSubmodules": false
3+
"rev": "9237a09d8edbae9951a67e9a3434a07ef94035b7",
4+
"date": "2020-04-19T11:10:38+05:30",
5+
"sha256": "05bizymljzzd665bpsjbhxamcgzq7bkjjzjfapkl2nicy774ak4x",
6+
"fetchSubmodules": false,
7+
"deepClone": false,
8+
"leaveDotGit": false
79
}

0 commit comments

Comments
 (0)