|
85 | 85 |
|
86 | 86 | ifdLevel = 3;
|
87 | 87 | runningHydraEvalTest = false;
|
88 |
| - compiler = "ghc928"; |
| 88 | + defaultCompiler = "ghc928"; |
89 | 89 | config = import ./config.nix;
|
90 | 90 |
|
91 | 91 | inherit (nixpkgs) lib;
|
|
163 | 163 | # for core of haskell.nix E.g. this should always work:
|
164 | 164 | # nix build .#roots.x86_64-linux --accept-flake-config --option allow-import-from-derivation false
|
165 | 165 | roots = forEachSystem (system:
|
166 |
| - self.legacyPackagesUnstable.${system}.haskell-nix.roots compiler); |
| 166 | + self.legacyPackagesUnstable.${system}.haskell-nix.roots defaultCompiler); |
167 | 167 |
|
168 | 168 | # Note: `nix flake check` evaluates outputs for all platforms, and haskell.nix
|
169 | 169 | # uses IFD heavily, you have to have the ability to build for all platforms
|
|
179 | 179 | (import ./test {
|
180 | 180 | haskellNix.sources = inputs;
|
181 | 181 | haskellNix.nixpkgsArgs = nixpkgsArgs;
|
182 |
| - compiler-nix-name = compiler; |
| 182 | + compiler-nix-name = defaultCompiler; |
183 | 183 | inherit pkgs;
|
184 | 184 | })
|
185 | 185 | )
|
|
191 | 191 | packages = forEachSystemPkgs (pkgs:
|
192 | 192 | (import ./hix/default.nix { inherit pkgs; }).apps
|
193 | 193 | );
|
| 194 | + |
194 | 195 | apps = forEachSystemPkgs (pkgs:
|
195 | 196 | builtins.mapAttrs
|
196 | 197 | (name: exe: {
|
|
277 | 278 | ))
|
278 | 279 | mkHaskellNixShell;
|
279 | 280 | in
|
280 |
| - shells // { default = shells.${compiler}; }); |
| 281 | + shells // { default = shells.${defaultCompiler}; }); |
281 | 282 | };
|
282 | 283 |
|
283 | 284 | in
|
284 |
| - with (import nixpkgs { system = "x86_64-linux"; }); |
285 |
| - traceHydraJobs (lib.recursiveUpdate flake (lib.optionalAttrs (ifdLevel > 2) { |
286 |
| - hydraJobs.nix-tools = pkgs.releaseTools.aggregate { |
287 |
| - name = "nix-tools"; |
288 |
| - constituents = (if runningHydraEvalTest then [ ] else [ |
289 |
| - "aarch64-darwin.nix-tools.static.zipped.nix-tools-static" |
290 |
| - "x86_64-darwin.nix-tools.static.zipped.nix-tools-static" |
291 |
| - "aarch64-darwin.nix-tools.static.zipped.nix-tools-static-no-ifd" |
292 |
| - "x86_64-darwin.nix-tools.static.zipped.nix-tools-static-no-ifd" |
293 |
| - ]) ++ [ |
294 |
| - "x86_64-linux.nix-tools.static.zipped.nix-tools-static" |
295 |
| - "x86_64-linux.nix-tools.static.zipped.nix-tools-static-arm64" |
296 |
| - "x86_64-linux.nix-tools.static.zipped.nix-tools-static-no-ifd" |
297 |
| - "x86_64-linux.nix-tools.static.zipped.nix-tools-static-arm64-no-ifd" |
298 |
| - (writeText "gitrev" (self.rev or "0000000000000000000000000000000000000000")) |
299 |
| - ]; |
300 |
| - }; |
301 |
| - })); |
| 285 | + traceHydraJobs (lib.recursiveUpdate flake (lib.optionalAttrs (ifdLevel > 2) |
| 286 | + ( |
| 287 | + let pkgs = nixpkgs.legacyPackages."x86_64-linux"; in |
| 288 | + { |
| 289 | + hydraJobs.nix-tools = pkgs.releaseTools.aggregate { |
| 290 | + name = "nix-tools"; |
| 291 | + constituents = (if runningHydraEvalTest then [ ] else [ |
| 292 | + "aarch64-darwin.nix-tools.static.zipped.nix-tools-static" |
| 293 | + "x86_64-darwin.nix-tools.static.zipped.nix-tools-static" |
| 294 | + "aarch64-darwin.nix-tools.static.zipped.nix-tools-static-no-ifd" |
| 295 | + "x86_64-darwin.nix-tools.static.zipped.nix-tools-static-no-ifd" |
| 296 | + ]) ++ [ |
| 297 | + "x86_64-linux.nix-tools.static.zipped.nix-tools-static" |
| 298 | + "x86_64-linux.nix-tools.static.zipped.nix-tools-static-arm64" |
| 299 | + "x86_64-linux.nix-tools.static.zipped.nix-tools-static-no-ifd" |
| 300 | + "x86_64-linux.nix-tools.static.zipped.nix-tools-static-arm64-no-ifd" |
| 301 | + (pkgs.writeText "gitrev" (self.rev or "0000000000000000000000000000000000000000")) |
| 302 | + ]; |
| 303 | + }; |
| 304 | + } |
| 305 | + ))); |
302 | 306 |
|
303 | 307 | # --- Flake Local Nix Configuration ----------------------------
|
304 | 308 | nixConfig = {
|
|
0 commit comments