6
6
, nixpkgsArgs ? haskellNix . nixpkgsArgs
7
7
, pkgs ? import nixpkgs nixpkgsArgs
8
8
, evalPackages ? import nixpkgs nixpkgsArgs
9
- , nixpkgsForHydra ? haskellNix . sources . nixpkgs-2105
10
- , pkgsForHydra ? import nixpkgsForHydra ( nixpkgsArgs // { inherit ( pkgs ) system ; } )
9
+ # This version is used to make our GitHub Action runners happy
10
+ # Using `nixpkgs-unstable` currently results in:
11
+ # version `GLIBCXX_3.4.30' not found
12
+ , nixpkgsForGitHubAction ? haskellNix . sources . nixpkgs-2211
13
+ , pkgsForGitHubAction ? import nixpkgsForGitHubAction ( nixpkgsArgs // { inherit ( pkgs ) system ; } )
11
14
, ifdLevel ? 1000
12
15
, compiler-nix-name ? throw "No `compiler-nix-name` passed to build.nix"
13
16
, haskellNix ? ( import ./default.nix { } )
@@ -75,12 +78,7 @@ in rec {
75
78
update-docs = pkgs . buildPackages . callPackage ./scripts/update-docs.nix {
76
79
generatedOptions = pkgs . callPackage ./scripts/options-doc.nix { } ;
77
80
} ;
78
- # Because this is going to be used to test caching on hydra, it must not
79
- # use the darcs package from the haskell.nix we are testing. For that reason
80
- # it uses `pkgs.buildPackages.callPackage` not `haskell.callPackage`
81
- # (We could pull in darcs from a known good haskell.nix for hydra to
82
- # use)
83
- check-hydra = pkgsForHydra . buildPackages . callPackage ./scripts/check-hydra.nix { } ;
81
+ check-hydra = pkgs . buildPackages . callPackage ./scripts/check-hydra.nix { } ;
84
82
check-closure-size = pkgs . buildPackages . callPackage ./scripts/check-closure-size.nix {
85
83
# Includes cabal-install since this is commonly used.
86
84
nix-tools = pkgs . linkFarm "common-tools" [
@@ -89,21 +87,15 @@ in rec {
89
87
] ;
90
88
} ;
91
89
check-materialization-concurrency = pkgs . buildPackages . callPackage ./scripts/check-materialization-concurrency/check.nix { } ;
92
- # Forcing nixpkgs-unstable here because this test makes a script
93
- # that when run will build `aeson` (used by `tests/cabal-simple`)
94
- # and we currently do not build that on hydra for nixpkgs-2205 (used by `pkgs`).
95
- # Using nixpkgs-unstable should allow buildkite to find what it needs
96
- # in the hydra cache when it runs the script.
97
- check-path-support = ( import haskellNix . sources . nixpkgs-unstable nixpkgsArgs )
98
- . buildPackages . callPackage ./scripts/check-path-support.nix {
90
+ check-path-support = pkgsForGitHubAction . buildPackages . callPackage ./scripts/check-path-support.nix {
99
91
inherit compiler-nix-name ;
100
92
} ;
101
93
} ;
102
94
103
95
# These are pure parts of maintainer-script so they can be built by hydra
104
96
# and added to the cache to speed up buildkite.
105
97
maintainer-script-cache = pkgs . recurseIntoAttrs (
106
- ( pkgs . lib . optionalAttrs ( pkgsForHydra . system == "x86_64-linux" ) {
98
+ ( pkgs . lib . optionalAttrs ( pkgs . system == "x86_64-linux" ) {
107
99
inherit ( maintainer-scripts ) check-hydra ;
108
100
} )
109
101
// ( pkgs . lib . optionalAttrs ( ifdLevel > 2 ) {
0 commit comments