!9IQChSjwSHXPPWTa:lix.systems

Lix

1124 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
20 Feb 2026
@toonn:matrix.orgtoonn Isn't a nix-shell shebang always just `#! /usr/bin/env nix-shell`? So no hashes to mess up and the second "shebang" line is parsed by Nix or Lix as the case may be, not by a shell as a shebang. 10:13:30
@hexa:lossy.networkhexayep11:19:53
@ian-h-chamberlain:matrix.orgian-h-chamberlain maybe but in this case they were trying to use nix shell with flake refs (which as I understand has had shebang parsing removed from Lix), not nix-shell 19:31:11
@hexa:lossy.networkhexanix shell has no shebang support from what I know19:32:06
@toonn:matrix.orgtoonn And either way those flake refs would have to be passed on the second, not really a shebang, line no? 19:34:17
@ian-h-chamberlain:matrix.orgian-h-chamberlainyea. maybe more accurate description is "not added to Lix", cppnix has https://nix.dev/manual/nix/2.33/command-ref/new-cli/nix.html?highlight=shebang#shebang-interpreter19:35:22
@ian-h-chamberlain:matrix.orgian-h-chamberlain but on non-darwin it seems you can fake a subset of this by using OS built-in shebangs and env -S parsing, which is the example I gave earlier 19:39:00
@ian-h-chamberlain:matrix.orgian-h-chamberlain * 19:39:27
@toonn:matrix.orgtoonn But shebang parsing has nothing to do with Nix when it's the shell parsing it. 19:42:37
@toonn:matrix.orgtoonn Nvm, that's kinda what you said anyway. 19:45:31
@toonn:matrix.orgtoonn POSIX actually doesn't require more than one or two arguments (not sure whether env`s -S is an explicit exception or not) to be supported in shebangs. So it's probably a bad idea to try and do it all in a shebang anyway. The second shebang line is a pretty decent workaround IMO. 19:50:35
@shoenot:matrix.orgshoe joined the room.21:56:32
@shoenot:matrix.orgshoehi everyone21:57:28
@shoenot:matrix.orgshoei'm brand new to nix/lix (but not to *nix) and decided to jump in headfirst after downgrading my macbook and discovering that brew doesn't provide binaries anymore 21:58:24
@shoenot:matrix.orgshoecan't be spending 25 minutes compiling cmake 21:58:46
@raitobezarius:matrix.orgraitobezariusbrew doesn't provide binaries for aarch64-darwin anymore?21:59:06
@shoenot:matrix.orgshoeintel, on macos monterey21:59:23
@raitobezarius:matrix.orgraitobezariusfyi, nixpkgs cache will also start dropping x86_64-darwin soonish21:59:36
@raitobezarius:matrix.orgraitobezarius cc emily who knows better the timeline than me 21:59:44
@shoenot:matrix.orgshoelong as its around for at least another year i'm good :p i was going to buy a new laptop but i decided to wait a little longer 22:00:33
@leona:leona.isleonaAfter 26.05 branchoff, I.e. the full 26.05 support cycle still supports it, but not 26.1122:00:35
@raitobezarius:matrix.orgraitobezariusso this basically means that in Oct 2026, Intel macOS is no more in the cache22:00:56
@raitobezarius:matrix.orgraitobezariusfor stable releases22:01:02
@raitobezarius:matrix.orgraitobezariusand no more in May 2026 for unstable22:01:07
@raitobezarius:matrix.orgraitobezarius* and no more in June 2026 for unstable22:01:11
@leona:leona.isleonaNo, End of December?22:01:20
@leona:leona.isleona* No, End of December 2026?22:01:23
@raitobezarius:matrix.orgraitobezariustrue22:01:32
@raitobezarius:matrix.orgraitobezarius* so this basically means that in Dec. 2026, Intel macOS is no more in the cache22:01:44
@emilazy:matrix.orgemilymore to the point, we already do not support Monterey in Nixpkgs22:01:44

Show newer messages


Back to Room ListRoom Version: 10