We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fba612 commit 5afed24Copy full SHA for 5afed24
flake.nix
@@ -225,8 +225,13 @@
225
in (import nixpkgs { system = "x86_64-linux"; }).writeTextFile {
226
name = "devx";
227
executable = true;
228
+ # We use nix-shell to invoke bash, to work around some shells being just too ancient.
229
+ # This primarily happens on macOS. But as the sourced env may expect a bash version
230
+ # current with the current nix, using nix-shell to launch the bash is probably the
231
+ # most reliable option.
232
text = ''
- #!/bin/bash
233
+ #! /usr/bin/env nix-shell
234
+ #! nix-shell -i bash -p bash
235
236
set -euo pipefail
237
0 commit comments