!9IQChSjwSHXPPWTa:lix.systems

Lix

1119 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-rooms305 Servers

Load older messages


SenderMessageTime
16 Feb 2026
@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
13 May 2024
@aciceri:nixos.devzrsk joined the room.13:37:30
@dariof4:matrix.orgdariof4 joined the room.14:16:05
@abbe:badti.meabbe joined the room.14:42:22
@mjm:midna.devmjmlix is now in nixos-unstable, what's the best way to use it in a NixOS config?15:47:41
@k900:0upti.meK900nix.package = pkgs.lix15:47:54
@k900:0upti.meK900Probably15:47:58
@k900:0upti.meK900Or just keep using the module15:48:02
@puck:puck.moepuck you can use nix.package = pkgs.lix; if you want; but using the overlay will guarantee more updates (tho less binary cache) 15:48:44
@mjm:midna.devmjmwell, the module/overlay doesn't easily support using the one from nixpkgs15:48:44
@mjm:midna.devmjmi do want more binary cache15:49:21
@mjm:midna.devmjm yeah i guess i'll just do nix.package then 15:50:43
@raitobezarius:matrix.orgraitobezariusto have binary cache and HEAD, we will probably need to track the channels and bolt a lix on there and rebuild with our own CI then push in our binary cache17:33:17
@charles:computer.surgeryCharlesWhat's lix using as its binary cache? Attic?17:34:36
@arianvp:matrix.orgArian left the room.17:37:44
@tc424:glasgow.social@tc424:glasgow.socialLast I heard they were using garage as the back end, and think about attic17:39:11
@tc424:glasgow.social@tc424:glasgow.socialI don't know if that means they're just pushing directly into garage's s3 interface for the moment17:39:36

Show newer messages


Back to Room ListRoom Version: 10