| 16 Feb 2026 |
Ern | restarted, reran, new error
INFO Step: Provision Nix
ERROR
0: Install failure
1: Error executing action
2: Action `provision_nix` errored
3: Action `fetch_and_unpack_nix` errored
4: Unarchiving error
5: trying to unpack outside of destination path: /nix/temp-install-dir
6: Invalid argument
Location:
src/cli/subcommand/install.rs:300
Revert worked successfully this time. | 02:33:07 |
Ern | Third attempt, full success. | 02:36:52 |
opeik | i think the nix shell shebangs are broken?
#!/usr/bin/env nix
#! nix shell nixpkgs#bash nixpkgs#hello nixpkgs#cowsay --command bash
hello | cowsay
outputs:
error: 'wat.sh' is not a recognised command
Try 'nix --help' for more information.
on:
✦ ❯ : nix --version
nix (Lix, like Nix) 2.93.3
System type: aarch64-darwin
Additional system types: x86_64-darwin
| 08:11:28 |
opeik | * i think the nix shell shebangs are broken?
#!/usr/bin/env nix
#! nix shell nixpkgs#bash nixpkgs#hello nixpkgs#cowsay --command bash
hello | cowsay
outputs:
error: 'wat.sh' is not a recognised command
Try 'nix --help' for more information.
on:
✦ ❯ : nix --version
nix (Lix, like Nix) 2.93.3
System type: aarch64-darwin
Additional system types: x86_64-darwin
| 08:11:46 |
opeik | * i think the nix shell shebangs are broken?
#!/usr/bin/env nix
#! nix shell nixpkgs#bash nixpkgs#hello nixpkgs#cowsay --command bash
hello | cowsay
outputs:
error: 'wat.sh' is not a recognised command
Try 'nix --help' for more information.
on:
❯ : nix --version
nix (Lix, like Nix) 2.93.3
System type: aarch64-darwin
Additional system types: x86_64-darwin
| 08:12:34 |
holly [she/it] 🏳️⚧️ | i've seen discussion about this before, if i'm remembering correctly it's not implemented for nix3 cli in lix | 09:08:18 |
opeik | darn, any reason why? it's very handy | 09:40:46 |
Sofie 🏳️⚧️ (she/her) | this ^ | 10:05:13 |
K900 | I think it's just that no one backported it from cppnix | 10:14:07 |
K900 | And no one working on Lix wants to touch flake code that much | 10:14:18 |
KFears 🏳️⚧️ (they/them) | I have attempted to backport it a while ago and it was a challenge. The code is not easy to understand, and I felt a lack of knowledge in both Lix and CppNix codebases to do it efficiently | 10:18:00 |
K900 | I mean, there's a reason no one wants to touch the flake code :P | 10:18:54 |
KFears 🏳️⚧️ (they/them) | Mhm, learned that firsthand | 10:19:31 |
KFears 🏳️⚧️ (they/them) | (I also never knew how such shebangs are implemented, and this is a very specific amalgamation of checks that enables it, like I think the command needs to check its arguments and see how and where it's invoked and then manually read the next line of the file or something like that) | 10:21:06 |
KFears 🏳️⚧️ (they/them) | (and I became kinda uncomfortable with doing this kind of feature in general, because of how special-case it is) | 10:21:35 |
K900 | I mean honestly shebangs are just generally horribly cursed | 10:24:06 |
KFears 🏳️⚧️ (they/them) | Mhm, that is the impression I got | 11:06:53 |
KFears 🏳️⚧️ (they/them) | So I would aim instead to create some nice-r UX for using general Nix commands and/or code for scripts, than hacking together a shebang | 11:07:43 |
| zimward changed their display name from zimward to zim. | 13:49:38 |
| zimward changed their display name from zim to zimward. | 13:50:44 |
| @opandddd:matrix.org left the room. | 16:27:27 |
minman | Could it have something to do with the emulation? When I remove hostPlatform = "aarch64-linux"; I do not get the from elftools.common.exceptions import ELFError error. In this thread it looks like someone has a simular problem. https://discourse.nixos.org/t/fex-as-binfmt-to-build-nix-derivations/74845 | 17:19:58 |
minman | * Could it have something to do with the cross-compilation/emulation? When I remove hostPlatform = "aarch64-linux"; I do not get the from elftools.common.exceptions import ELFError error. In this thread it looks like someone has a simular problem. https://discourse.nixos.org/t/fex-as-binfmt-to-build-nix-derivations/74845 | 17:23:15 |
minman | * Could it have something to do with the cross-compilation? When I remove hostPlatform = "aarch64-linux"; I do not get the from elftools.common.exceptions import ELFError error. In this thread it looks like someone has a simular problem. https://discourse.nixos.org/t/fex-as-binfmt-to-build-nix-derivations/74845 | 17:26:39 |
minman | * Could it have something to do with the cross-compilation/emulation? When I remove
hostPlatform = "aarch64-linux"; I do not get the from elftools.common.exceptions import ELFError error. In this thread it looks like someone has a simular problem. https://discourse.nixos.org/t/fex-as-binfmt-to-build-nix-derivations/74845 | 17:58:35 |
ian-h-chamberlain | for simple case like this I think you can use env -S arg:
nix-on-droid@localhost ~> cat /tmp/test.sh
#!/usr/bin/env -S nix shell nixpkgs#hello nixpkgs#cowsay -c bash
hello | cowsay
nix-on-droid@localhost ~> /tmp/test.sh
_______________ < Hello, world! > --------------- \ ^__^ \ (oo)\_______
(__)\ )\/\
||----w |
|| ||
| 18:28:30 |
| Mistress Lyna changed their display name from 𐑤𐑰𐑯𐑨 to Mistress Lyna. | 20:18:29 |
| yimi joined the room. | 22:10:53 |
| 17 Feb 2026 |
opeik | wat
error: flake 'flake:nixpkgs' does not provide attribute 'packages.aarch64-darwin.default' or 'defaultPackage.aarch64-darwin'
| 02:25:13 |
opeik | * it's busted?
error: flake 'flake:nixpkgs' does not provide attribute 'packages.aarch64-darwin.default' or 'defaultPackage.aarch64-darwin'
| 02:25:31 |