!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

884 Members
For people hacking on the Nix package manager itself189 Servers

Load older messages


SenderMessageTime
22 Apr 2025
@dramforever:matrix.orgdramforevermaybe there's some funny impurities?11:11:06
@dramforever:matrix.orgdramforever what's your nixpkgs commit, and what does which nix say? 11:16:31
@jaen:matrix.orgjaen
In reply to @flokli:matrix.org
This is the dependencies / devDependencies problem, and whether to transitively propagate dev dependencies inputs
Yes, but my understanding was you can work around this somewhat with flakes (either using getFlake one of the various flake-compats or https://flake.parts/options/flake-parts-partitions.html) - so my point there was that with automatic hosting as described with those "crystals", you would lose option to use those workarounds until a proper concept of "scoped" inputs is added. Unless I misunderstood how those workarounds work exactly and they don't really allow you to fetch those dev inputs lazily. Hope it's more clear now what I wanted to say?
11:34:35
@flokli:matrix.orgflokli
In reply to @jaen:matrix.org
Yes, but my understanding was you can work around this somewhat with flakes (either using getFlake one of the various flake-compats or https://flake.parts/options/flake-parts-partitions.html) - so my point there was that with automatic hosting as described with those "crystals", you would lose option to use those workarounds until a proper concept of "scoped" inputs is added. Unless I misunderstood how those workarounds work exactly and they don't really allow you to fetch those dev inputs lazily. Hope it's more clear now what I wanted to say?
You can use various hacks to workaround various problems, yes. But the way I understood it was that "crystals", or however we want to call a new schema / layout aim to solve this as a first-class citizen, not just another workaround.
11:37:31
@flokli:matrix.orgflokliThere's too many workarounds for problems with the schema.11:37:52
@jaen:matrix.orgjaenYeah, that's true. I've just meant that "crystals" would have to come with input scopes from the get go, as it would make those workarounds (such as they are) not viable.11:39:52
@flokli:matrix.orgflokliI'd be happy to read and give feedback on a design proposal.11:41:15
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)Idea: We should detect a "minimum syscall permission set" that allows Nix to work and make both hydra and ofborg follow this specification. Currently nested containers (for example, nix-build in systemd-nspawn) cannot pass the checkPhase of some packages, but we don't fix it because CI isn't set up as such.12:55:28
@mschwaig:matrix.orgMartin Schwaighofer
In reply to @puck:puck.moe
most of the logic in that file is to properly adjust stringLength output to the post-substitution paths, even, the actual logic there is like three lines

Just asking out of curiosity: Why was string length important to you?

I don't see when that would matter with how they are usually used, so I figure maybe you are doing something unusual. 😅

15:21:26
@sistema.matrix:matrix.orgThomas joined the room.17:11:37
@griff79:matrix.orggriff joined the room.19:07:55
23 Apr 2025
@slamphear:matrix.org@slamphear:matrix.org joined the room.00:07:12
@puck:puck.moepuck
In reply to @mschwaig:matrix.org

Just asking out of curiosity: Why was string length important to you?

I don't see when that would matter with how they are usually used, so I figure maybe you are doing something unusual. 😅

it's for calculating the length of the final string, post-substitution, so it can be properly seated into the tarball
12:39:20
@slamphear:matrix.org@slamphear:matrix.org left the room.12:40:10
@mschwaig:matrix.orgMartin Schwaighofer
In reply to @puck:puck.moe
it's for calculating the length of the final string, post-substitution, so it can be properly seated into the tarball
Ok, I see. Thanks. 😊
13:04:10
@joerg:thalheim.ioMic92
In reply to @aleksana:mozilla.org
Idea: We should detect a "minimum syscall permission set" that allows Nix to work and make both hydra and ofborg follow this specification. Currently nested containers (for example, nix-build in systemd-nspawn) cannot pass the checkPhase of some packages, but we don't fix it because CI isn't set up as such.
The nix sandbox with seccomp defines the minimum set of syscalls already.
13:24:18
@joerg:thalheim.ioMic92Issue is that your containers syscall set is smaller than set13:24:56
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)
In reply to @joerg:thalheim.io
Issue is that your containers syscall set is smaller than set
We should at least throw a warning I guess?
13:25:26
@joerg:thalheim.ioMic92How would you implement that?13:25:50
@joerg:thalheim.ioMic92This something you can do in a test derivation. But I don't think nix should test this13:26:55
@joerg:thalheim.ioMic92* This something you can do in a test derivation. But I don't think nix should test this on startup13:27:06
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)
In reply to @joerg:thalheim.io
This something you can do in a test derivation. But I don't think nix should test this
Maybe test in Nix installer, and also add to like nix config check?
13:28:27
@jul1u5:matrix.orgjul1u5 changed their profile picture.18:31:40
24 Apr 2025
@main.hose6422:matrix.orgmain.hose joined the room.18:39:23
25 Apr 2025
@bennofs:matrix.orgBenno Fünfstück joined the room.15:17:57
@nrs-status:matrix.orgthirdofmay18081814goya joined the room.15:18:01
@bennofs:matrix.orgBenno Fünfstückis there some way to force a value in Nix but then later deallocate everything allocated by this forcing? Or is that fundamentally impossible due to how the evaluator works right now?15:23:57
@bennofs:matrix.orgBenno Fünfstückperhaps I could abuse fork for this... hmm15:24:40
@emilazy:matrix.orgemilywell, you can drop all references to it and let it get GC'd15:29:27
@emilazy:matrix.orgemilybut generally forced thunks don't go back to being thunks in lazy languages15:29:44

Show newer messages


Back to Room ListRoom Version: 6