!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

234 Members
75 Servers

Load older messages


SenderMessageTime
9 Nov 2024
@rosscomputerguy:matrix.orgTristan RossBecause the python update script fills in the template 15:54:23
@emilazy:matrix.orgemily I don't quite understand what the Nix is for but surely all the parameterization here could just be --argstr? 15:55:43
@rosscomputerguy:matrix.orgTristan RossIt fetches the source so the hash can be determined 15:56:55
@rosscomputerguy:matrix.orgTristan RossThe hashes are written out into a JSON file and gets imported later on15:57:15
@rosscomputerguy:matrix.orgTristan RossI also didn't originally write the updater, I only changed it once I added the flutter engine built from source lol15:59:22
@emilazy:matrix.orgemily yeah, but I mean, Nix is a programming language. you don't need to do "@foo@", you can just… take foo as an argument and pass it with --arg/--argstr when evaluating/building. 16:06:21
10 Nov 2024
@emilazy:matrix.orgemily help: is it normal that gcc and gcc13 are wrapping different GCCs (different bootstrap stages seemingly) with different options even though gcc = pkgs.${"gcc${toString 13}"} 12:53:26
@trofi:matrix.orgtrofi At least stdenv.cc is gcc :) 16:56:41
@emilazy:matrix.orgemilyindeed16:57:25
@emilazy:matrix.orgemilybut I can't figure out why16:57:28
@emilazy:matrix.orgemily some stdenv overlay stuff I don't understand, I presume? 16:57:33
@emilazy:matrix.orgemilyit's breaking Alyssa's PR https://github.com/NixOS/nixpkgs/pull/34423916:57:46
@emilazy:matrix.orgemily this is only applying to actual gcc13, not the GCC that's actually used :/ 16:57:56
@emilazy:matrix.orgemily (also, it seems weird that the builder of the unwrapped gcc is a bootstrap tools Bash – I thought the bootstrap tools were meant to be rinsed out by the late stdenv stages?) 16:58:19
@trofi:matrix.orgtrofi gcc needs stdenv. sdtenv needs gcc. I don't think they can be defined in a single bootstrap phase. 16:58:45
@trofi:matrix.orgtrofi gcc gets clobbered by a last stage of the bootstrap: https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/linux/default.nix#L683 17:01:08
@emilazy:matrix.orgemilymakes sense17:03:24
@emilazy:matrix.orgemilywhat's the correct way to adjust the wrapping options of the C compiler that's actually used? I couldn't find where the wrapping happens in the bootstrap.17:03:40
@trofi:matrix.orgtrofi bootstrap stages use gcc attribute, that is a wrapper (compared to gcc-unwrapped compiler without a wrapper). For example here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/linux/default.nix#L565 . Otherwise it should use default nixpkgs definition. 17:08:19
@emilazy:matrix.orgemily "otherwise" as in, for a "complete" Nixpkgs gcc should be the same as gcc13? 17:09:20
@emilazy:matrix.orgemilybecause that's not what I observed :(17:09:38
@trofi:matrix.orgtrofi "otherwise", as in in the previous bootstrap stages (there gcc usually comes as a prebuild from bootstrap-tools) 17:12:26
@emilazy:matrix.orgemilyright17:17:16
@emilazy:matrix.orgemily so I guess Alyssa's modifications need duplicating in both stdenv and gcc :/ 17:17:31
@emilazy:matrix.orgemilyat least they're only temporary17:17:37
@qyliss:fairydust.spaceAlyssa Ross

Is it that gccgcc13, or that gccstdenv.cc?

19:24:03
@qyliss:fairydust.spaceAlyssa RossI assume the latter?19:24:50
@qyliss:fairydust.spaceAlyssa Ross

If we just overrode the flags for stdenv.cc, that would mean packages already pinned to gcc13 don't have to worry about the flags, which might be nice?

19:25:15
@qyliss:fairydust.spaceAlyssa RossDoesn't matter too much either way though I think19:25:22
@emilazy:matrix.orgemilyno19:25:55

Show newer messages


Back to Room ListRoom Version: 9