Skip to content

Commit a9e8017

Browse files
committed
ci: try to set NIX_PATH
1 parent 143465f commit a9e8017

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ jobs:
4040
- name: Build
4141
run: |
4242
# stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
43+
export NIX_PATH="nixpkgs=$(nix run .#nixpkgsPath)"
4344
nix run .#stack -- build --nix --test --bench --no-run-tests --no-run-benchmarks
4445
4546
- name: Test
4647
run: |
4748
# stack test --system-ghc --test-arguments --print
49+
export NIX_PATH="nixpkgs=$(nix run .#nixpkgsPath)"
4850
nix run .#stack -- test --nix --test-arguments --print
4951
5052
no-gmp:

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@
7474
7575
exit 0
7676
'';
77+
78+
nixpkgsPath = pkgs.writeShellScriptBin "nixpkgsPath.sh" "echo -n ${pkgs.path}";
7779
});
7880

7981
inherit flake;
80-
81-
nixpkgsPath = pkgs.path;
8282
}
8383
);
8484

0 commit comments

Comments
 (0)