!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

217 Members
https://github.com/nixpkgs-architecture, weekly public meetings on Wednesday 15:00-16:00 UTC at https://meet.jit.si/nixpkgs-architecture53 Servers

Load older messages


SenderMessageTime
19 Jan 2025
@weethet:catgirl.cloudWeetHetWhy is checkPhase a part of the derivation build process? It feels like having another derivation which is being fed with the intermediates of the package derivation so disabling/experimenting with tests wouldn't require rebuilding the derivation is a better idea?14:39:14
@emilazy:matrix.orgemilyyes in principle, but many technical issues14:55:35
@emilazy:matrix.orgemilyintermediates can be huge, for one thing14:56:38
@emilazy:matrix.orgemily installCheckPhase is easier to factor like this 14:56:38
@weethet:catgirl.cloudWeetHetSome derivations take 1h+ to build and debugging checkPhase is basically impossible15:04:14
@weethet:catgirl.cloudWeetHet I can probably run nix develop and execute phases yourself but it's a pain and I would rather prefer that I don't 15:05:29
@weethet:catgirl.cloudWeetHet * I can probably run nix develop and execute phases myself but it's a pain and I would rather prefer that I don't 15:05:57
@rosscomputerguy:matrix.orgTristan Ross You can use the --keep-failed flag and then try debugging it through the tmp directory it put the build in. 15:06:32
@weethet:catgirl.cloudWeetHetThe environment isn't preserved though15:07:41
@rosscomputerguy:matrix.orgTristan Ross
In reply to @weethet:catgirl.cloud
The environment isn't preserved though
It saves the environmental variables 
15:08:20
@rosscomputerguy:matrix.orgTristan Ross You can source those 15:08:28
@weethet:catgirl.cloudWeetHetWait it does?15:08:44
@rosscomputerguy:matrix.orgTristan Ross Yes 15:08:51
@emilazy:matrix.orgemilywhat would you do to debug/fix it that wouldn't change the original derivation anyway?15:08:57
@rosscomputerguy:matrix.orgTristan Ross env-vars is the file  15:09:10
@weethet:catgirl.cloudWeetHetSkipping tests that require network/flaky tests15:09:33
@weethet:catgirl.cloudWeetHetTo be fair, it's probably a non-issue when you have something like crate2nix15:10:33
@weethet:catgirl.cloudWeetHet* To be fair, it's probably a non-issue when you have something like crate2nix, since rebuilds don't take that much15:10:44
@emilazy:matrix.orgemilyfair enough15:11:04
@weethet:catgirl.cloudWeetHetI still wish there was a way to make each phase it's own derivation without needing to copy the build folder ten times15:11:47
@weethet:catgirl.cloudWeetHet* I still wish there was a way to make each phase its own derivation without needing to copy the build folder ten times15:11:53
@emilazy:matrix.orgemilyyes, it would be good. it requires much more fundamental changes than Nixpkgs can do though15:13:04
@weethet:catgirl.cloudWeetHetOn the other hand, again, copying isn't such a big deal with modern CoW filesystems15:14:42
@emilazy:matrix.orgemilyit would go from not in the store to in the store, so usually you wouldn't be able to CoW15:19:19
@emilazy:matrix.orgemily (even when you have /nix/tmp and /nix/store on the same backing partition, there are technical reasons related to the bind mount stuff why it doesn't actually work on Linux) 15:19:43
22 Jan 2025
@glepage:matrix.orgGaétan Lepage joined the room.11:15:29
@9hp71n:matrix.orgghpzin joined the room.11:20:23
30 Jan 2025
@ofalvai:matrix.orgofalvai joined the room.19:49:00
31 Jan 2025
@zimbatm:numtide.comJonas Chevalier changed their display name from Jonas Chevalier to Jonas Chevalier (FOSDEM).19:11:27
@ss:someonex.netSomeoneSerge (Ever OOMed by Element) changed their display name from SomeoneSerge to SomeoneSerge (Bruxelles).19:35:53

Show newer messages


Back to Room ListRoom Version: 9