File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
{ ...} @args :
2
2
3
3
let
4
+ pin = ( __fromJSON ( __readFile ./flake.lock ) ) . nodes . nixpkgs-2205 . locked ;
4
5
nixpkgsSrc =
5
6
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 ;
8
9
} ;
9
10
pkgs = args . pkgs or ( import nixpkgsSrc { } ) ;
10
11
flake-compat =
Original file line number Diff line number Diff line change 39
39
40
40
if [ " $TESTS " == " unit-tests" ] || [ " $TESTS " == " all" ]; then
41
41
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
42
44
res=$( nix-instantiate --eval --json --strict ./default.nix --argstr compiler-nix-name $GHC -A unit.tests)
43
45
num_failed=$( jq length <<< " $res" )
44
46
if [ $num_failed -eq 0 ]; then
You can’t perform that action at this time.
0 commit comments