Skip to content

Commit ebb0a32

Browse files
Try #1649:
2 parents ffdf5b9 + 8329fc6 commit ebb0a32

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

default.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{...}@args:
22

33
let
4+
pin = (__fromJSON (__readFile ./flake.lock)).nodes.nixpkgs-2205.locked;
45
nixpkgsSrc =
56
builtins.fetchTarball {
6-
url = "https://github.com/NixOS/nixpkgs/archive/110a2c9ebbf5d4a94486854f18a37a938cfacbbb.tar.gz";
7-
sha256 = "sha256-leWXLchbAbqOlLT6tju631G40SzQWPqaAXQG3zH1Imw=";
7+
url = "https://github.com/NixOS/nixpkgs/archive/${pin.rev}.tar.gz";
8+
sha256 = pin.narHash;
89
};
910
pkgs = args.pkgs or (import nixpkgsSrc {});
1011
flake-compat =

test/tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ fi
3939

4040
if [ "$TESTS" == "unit-tests" ] || [ "$TESTS" == "all" ]; then
4141
printf "*** Running the unit tests... " >& 2
42+
# Running nix build first avoids `error: path '/nix/store/X-hackage-to-nix-ghcjs-overlay.drv' is not valid`
43+
nix-build ./default.nix --argstr compiler-nix-name $GHC -A unit.tests
4244
res=$(nix-instantiate --eval --json --strict ./default.nix --argstr compiler-nix-name $GHC -A unit.tests)
4345
num_failed=$(jq length <<< "$res")
4446
if [ $num_failed -eq 0 ]; then

0 commit comments

Comments
 (0)