The method used to determine which nix command to use is broken as from the --version output used here
|
nix_version=$(nix --version | awk '{ print $3 }') |
|
|
|
if verlt $nix_version 2.4 |
|
then |
|
# before nix 2.4: nix run |
|
nix run ${wrappedPackages} -c ${interpreter} ${scriptPath} |
|
else |
|
# nix 2.4 and later: nix shell |
|
nix --experimental-features 'nix-command flakes' ${nixCommand} ${flakeWrappedPackages} -c ${interpreter} ${scriptPath} |
|
fi |
instead of receiving only the version number like with the standard nix it instead returns the below
nix (Lix, like Nix) 2.93.3
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux, x86_64-v4-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/racci/.config/nix/nix.conf:/nix/store/0rddhpcp41aj8pl99xm1d813xc2v0279-stylix-kde-config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/racci/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/racci/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/racci/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/w7x0993gjpy31k5v5xklnqmd8q0br8h0-lix-2.93.3/share
Which then in turn attempts to use the nix run -c variant which doesn't work as its way beyond the nix version that was valid in.
The method used to determine which nix command to use is broken as from the --version output used here
nix-shell-action/src/main.ts
Lines 54 to 63 in 2faaa9c
instead of receiving only the version number like with the standard nix it instead returns the below
Which then in turn attempts to use the
nix run -cvariant which doesn't work as its way beyond the nix version that was valid in.