Skip to content

Commit fd8a0f6

Browse files
committed
Set NIX_PATH in CI
1 parent 443b8bf commit fd8a0f6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ jobs:
4040
- name: Run nix-build
4141
run: |
4242
cd test_depots/${{matrix.test_depot}}
43+
export NIX_PATH="nixpkgs=$(nix run .#nixpkgsPath)"
4344
nix-build .

flake.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
--set PATH ${lib.makeBinPath [nix python3 julia-stable-bin]} \
2525
--set NIX_PATH nixpkgs=${pkgs.path}
2626
'';
27+
28+
nixpkgsPath = pkgs.writeShellScriptBin "nixpkgsPath.sh" "echo -n ${pkgs.path}";
2729
};
2830
});
2931
}

0 commit comments

Comments
 (0)