Skip to content

Commit 22c8804

Browse files
committed
Update check-path-support
1 parent 3b24d73 commit 22c8804

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

build.nix

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,14 @@ in rec {
7676
];
7777
};
7878
check-materialization-concurrency = pkgs.buildPackages.callPackage ./scripts/check-materialization-concurrency/check.nix {};
79-
check-path-support = pkgs.buildPackages.callPackage ./scripts/check-path-support.nix {
80-
# TODO remove this when nixpkgs-2205 is released and used for `pkgs`
81-
# check-path-support fails unless we have nix 2.4 or newer.
82-
inherit (import haskellNix.sources.nixpkgs-unstable {}) nix;
79+
# Forcing nixpkgs-unstable here because this test makes a script
80+
# that when run will build `aeson` (used by `tests/cabal-simple`)
81+
# and we currently do not build that on hydra for nixpkgs-2205 (used by `pkgs`).
82+
# Using nixpkgs-unstable should allow buildkite to find what it needs
83+
# in the hydra cache when it runs the script.
84+
check-path-support = (import haskellNix.sources.nixpkgs-unstable nixpkgsArgs)
85+
.buildPackages.callPackage ./scripts/check-path-support.nix {
86+
inherit compiler-nix-name;
8387
};
8488
};
8589

scripts/check-path-support.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ stdenv, lib, writeScript, coreutils, gnutar, gzip, nix, gitMinimal }:
1+
{ stdenv, lib, writeScript, coreutils, gnutar, gzip, nix, gitMinimal, compiler-nix-name }:
22

33
with lib;
44

@@ -9,5 +9,5 @@ writeScript "check-path-supprot.sh" ''
99
1010
export PATH="${makeBinPath [ coreutils gnutar gzip nix gitMinimal ]}"
1111
12-
nix-build -E '((import ./. {}).pkgs.haskell-nix.cabalProject { compiler-nix-name = "ghc865"; src = ./test/cabal-simple; }).cabal-simple.components.library'
12+
nix-build -E '((import ./. {}).pkgs.haskell-nix.cabalProject { inherit compiler-nix-name; src = ./test/cabal-simple; }).cabal-simple.components.library'
1313
''

0 commit comments

Comments
 (0)