Skip to content

Commit d9ffdc4

Browse files
jappeace-slothclaude
andcommitted
Fix simulator test: resolve nixpkgs from npins for xcodegen
The iOS CI job doesn't set NIX_PATH, so `nix-shell -p xcodegen` failed with "file 'nixpkgs' was not found in the Nix search path". Resolve nixpkgs from npins inline, consistent with how the project already handles nix dependencies. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dacf72f commit d9ffdc4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ jobs:
9292
- name: Build simulator test
9393
run: nix-build nix/simulator.nix -o result-simulator
9494
- name: Run simulator lifecycle test
95-
run: nix-shell -p xcodegen --run "./result-simulator/bin/test-lifecycle-ios"
95+
run: |
96+
NIXPKGS=$(nix-instantiate --eval -E 'builtins.toString (import ./npins).nixpkgs' | tr -d '"')
97+
nix-shell -I "nixpkgs=$NIXPKGS" -p xcodegen --run "./result-simulator/bin/test-lifecycle-ios"
9698
- name: Upload iOS library
9799
if: github.ref == 'refs/heads/master'
98100
uses: actions/upload-artifact@v4

‎makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test-emulator:
1212

1313
test-simulator:
1414
nix-build nix/simulator.nix -o result-simulator
15-
nix-shell -p xcodegen --run "./result-simulator/bin/test-lifecycle-ios"
15+
nix-shell -I nixpkgs=$$(nix-instantiate --eval -E 'builtins.toString (import ./npins).nixpkgs' | tr -d '"') -p xcodegen --run "./result-simulator/bin/test-lifecycle-ios"
1616

1717
haddock:
1818
cabal haddock all

0 commit comments

Comments
 (0)