Commit 5302e1b
authored
Fix devx container failures: Bash 3.2 rejection and impure path errors (#226)
Two fixes for CI failures when consuming devx containers:
1. Use Nix-provided Bash in shebang instead of /usr/bin/env bash.
On macOS GitHub Actions runners, /usr/bin/env bash resolves to
Apple's Bash 3.2 (GPLv2), but nixpkgs' setup.sh requires Bash 5+.
pkgs.bash is already in the closure via stdenv.
2. Disable NIX_ENFORCE_PURITY before sourcing stdenv/setup.
The stdenv preHook defaults NIX_ENFORCE_PURITY to 1, causing
cc-wrapper to reject -I/-L flags outside /nix/store/. This breaks
cabal builds that use $HOME/.cabal-devx/store/. Setting it to empty
before sourcing setup.sh matches nix develop behavior.1 parent f7739c4 commit 5302e1b
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
366 | 374 | | |
367 | 375 | | |
368 | 376 | | |
| |||
0 commit comments