!9IQChSjwSHXPPWTa:lix.systems

Lix

1120 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms306 Servers

Load older messages


SenderMessageTime
16 Feb 2026
@ernfoury:matrix.orgErn

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
@ernfoury:matrix.orgErnThird attempt, full success.02:36:52
@opeik:matrix.orgopeik

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:matrix.orgopeik *

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:matrix.orgopeik *

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
@oli:catgirl.cloudholly [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:matrix.orgopeikdarn, any reason why? it's very handy09:40:46
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)this ^10:05:13
@k900:0upti.meK900I think it's just that no one backported it from cppnix10:14:07
@k900:0upti.meK900And no one working on Lix wants to touch flake code that much10:14:18
@kfears:matrix.orgKFears 🏳️‍⚧️ (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 efficiently10:18:00
@k900:0upti.meK900I mean, there's a reason no one wants to touch the flake code :P10:18:54
@kfears:matrix.orgKFears 🏳️‍⚧️ (they/them)Mhm, learned that firsthand10:19:31
@kfears:matrix.orgKFears 🏳️‍⚧️ (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:matrix.orgKFears 🏳️‍⚧️ (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:0upti.meK900I mean honestly shebangs are just generally horribly cursed10:24:06
@kfears:matrix.orgKFears 🏳️‍⚧️ (they/them)Mhm, that is the impression I got11:06:53
@kfears:matrix.orgKFears 🏳️‍⚧️ (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 shebang11:07:43
@zimward:zimward.moezimward changed their display name from zimward to zim.13:49:38
@zimward:zimward.moezimward changed their display name from zim to zimward.13:50:44
@opandddd:matrix.org@opandddd:matrix.org left the room.16:27:27
@minman:matrix.orgminman 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:matrix.orgminman * 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:matrix.orgminman * 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:matrix.orgminman* 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/7484517:58:35
@ian-h-chamberlain:matrix.orgian-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
@lunalina:catgirl.cloudMistress Lyna changed their display name from 𐑤𐑰𐑯𐑨 to Mistress Lyna.20:18:29
@yimi4:matrix.orgyimi joined the room.22:10:53
17 Feb 2026
@opeik:matrix.orgopeik

wat

error: flake 'flake:nixpkgs' does not provide attribute 'packages.aarch64-darwin.default' or 'defaultPackage.aarch64-darwin'
02:25:13
@opeik:matrix.orgopeik *

it's busted?

error: flake 'flake:nixpkgs' does not provide attribute 'packages.aarch64-darwin.default' or 'defaultPackage.aarch64-darwin'
02:25:31

Show newer messages


Back to Room ListRoom Version: 10