!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

228 Members
74 Servers

Load older messages


SenderMessageTime
13 Nov 2024
@p14:matrix.orgp14I'd appreciate any input on ideas for where I might put an assert / how to implement an assert that clang.cc == pkgsStatic.stdenv.cc.cc == pkgsLLVM.stdenv.cc.cc for https://github.com/NixOS/nixpkgs/pull/355532. I figure I can't just put one in the expression for every eval since we don't want to be evaluating stuff unnecessarily, so presumably it should go into a release test of some sort; but is there anything I can use for precommit?19:56:39
@emilazy:matrix.orgemilyI think it could go into stdenv. that doesn't sound like an expensive check to eval all the time20:03:44
@emilazy:matrix.orgemily though it should probably be .outPath 20:03:50
@emilazy:matrix.orgemilysince comparing derivations is mildly evil I think20:03:56
@p14:matrix.orgp14+1 on outPath; but I'm thinking that evaling some cross derivation surely involves a substantial amount of additional eval you otherwise don't need.20:13:20
@emilazy:matrix.orgemilyoh, sorry, I only skimmed the message and missed the cross package sets20:13:52
@emilazy:matrix.orgemilyyeah that wouldn't be good20:13:54
@emilazy:matrix.orgemily maybe it's a pkgs/test type thing? 20:14:02
@emilazy:matrix.orgemily for hooks, I mean – you could just nix eval 20:14:26
@emilazy:matrix.orgemilyassuming you just mean for your local purposes20:14:31
@p14:matrix.orgp14I mean I'd like to defend the effect of that PR: to ensure we don't actually regress it.20:18:47
@p14:matrix.orgp14Ideally in pre-commit.20:19:06
@emilazy:matrix.orgemilywe don't do pre-commit20:19:41
@emilazy:matrix.orgemilybut you could put it in CI20:19:44
@emilazy:matrix.orgemilyprobably ofborg is the appropriate place but contributing to ofborg is ?20:20:01
@emilazy:matrix.orgemily(also, doing an eval of three package sets every time anyone commits ever is definitely too intrusive/expensive :) )20:20:29
@p14:matrix.orgp14Don't need the whole set, merely the compiler. For what it's worth. But, yeah.20:26:11
@inayet:matrix.orgInayet joined the room.22:15:50
@sternenseemann:systemli.orgsterni
In reply to @emilazy:matrix.org
since comparing derivations is mildly evil I think
nothing evil about it https://github.com/NixOS/nix/blob/03dc3c57693ab64bac6258834fd36b55b723fc33/src/libexpr/eval.cc#L2738-L2746
22:49:54
@emilazy:matrix.orgemilythat's kind of an evil special-case. but okay, I was afraid it was more like comparing platforms22:50:41
@sternenseemann:systemli.orgsternifunctions in platform sets was unironically the best accidental feature ever22:53:16
@sternenseemann:systemli.orgsterniit had the perfect semantics for the equality check between localSystem and crossSystem22:53:33
@sternenseemann:systemli.orgsterninow everything's broken22:53:37
@sternenseemann:systemli.orgsterniyou can't do native cross anymore, nixpkgs has become like the build systems it used to fight 22:54:19
@sternenseemann:systemli.orgsterni like you have to pass crossOverlays = [ (self: super: {}) ] which is just stupid 22:57:45
@emilazy:matrix.orgemilyby "native cross", you mean always-cross?23:03:07
@artturin:matrix.orgArtturinWe need to resurrect https://github.com/NixOS/nixpkgs/pull/23833123:03:12
@emilazy:matrix.orgemilyI'd rather just do always-cross always.23:03:26
@sternenseemann:systemli.orgsterni Artturin: indeed because you can't reintroduce native cross now because of function equality or at least it'd be very weird 23:11:04
@sternenseemann:systemli.orgsternihmm scratch that actually it'd probably just be like before23:11:52

Show newer messages


Back to Room ListRoom Version: 9