!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

225 Members
74 Servers

Load older messages


SenderMessageTime
3 Dec 2025
@pyrox:pyrox.devdish [Fox/It/She]just trying to understand the scope of the patchset relative to if I want to take any changes into my existing upgrade branch21:57:14
@qyliss:fairydust.spaceAlyssa Ross We have runInLinuxVM! 22:04:11
@aleksi:pikaviestin.fialeksi

Hmm, yeah there might be little things:

  • GCC v8 upgraded to v10 (for better RV64 backend, mostly, but can be good for i686)
  • bash 5.2 to 5.2.37, which fixes the strtoimax issue
  • fixed egrep, the makefile from live-bootstrap is wrong
  • fixed strncasecmp in heirloom stubs, the old implementation can segfault if you give it a string literal as an argument, which heirloom does
22:04:21
@rosscomputerguy:matrix.orgTristan RossWould be cursed to wrap everything in that22:04:54
@aleksi:pikaviestin.fialeksi

Actually I see a bug in my own strncasecmp now, when the strings have different lengths, I will have to fix that

22:04:55
@aleksi:pikaviestin.fialeksi

Oh, and I think the printf patches in mes/libs.nix can affect i686

22:07:00
4 Dec 2025
@grqp:matrix.orgGrqP joined the room.03:15:52
@grqp:matrix.orgGrqPIs this the right channel to ask newb questions about makeWrapper and setup hooks?03:18:15
@rosssmyth:matrix.orgrosssmythDon't ask to ask04:38:45
@rosssmyth:matrix.orgrosssmythjust ask04:38:47
@grqp:matrix.orgGrqP

I'm trying to figure out how to navigate the sources to determine where wrapProgram, makeWrapper are populated. I can see in github the shell script, and that pkgs.makeWrapper copies to setup-hook, but can't find who calls makeSetupHook to trigger that.

Is there a fast way to figure this out without grepping the repo directly?

04:54:53
@winter:catgirl.cloudWinter

grep, tbh… or something like builtins.unsafeGetAttrPos "makeWrapper" pkgs

nonetheless. https://github.com/NixOS/nixpkgs/blob/821f1a2ebab0f13d6d65170d6bd7d2b3a182efdb/pkgs/top-level/all-packages.nix#L728

05:19:23
@winter:catgirl.cloudWinter *

grep, tbh… or something like builtins.unsafeGetAttrPos "makeWrapper" pkgs

nonetheless: https://github.com/NixOS/nixpkgs/blob/821f1a2ebab0f13d6d65170d6bd7d2b3a182efdb/pkgs/top-level/all-packages.nix#L728

05:19:30
@grqp:matrix.orgGrqPI forgot about unsafeGetAttrPos. I thought nix repl :e would get me there but not so much.05:24:55
@winter:catgirl.cloudWinter :doc miiiight 05:47:08
@winter:catgirl.cloudWinterbut i forget if upstream nix has this05:47:17
@qyriad:katesiria.orgQyriad Neither makeWrapper nor makeShellWrapper have comments on them, so :doc doesn't help, bleh 11:13:06
4 Aug 2022
@winterqt:nixos.devWinter (she/her) joined the room.03:27:09
@0x4a6f:matrix.org[0x4A6F] joined the room.22:08:01
6 Aug 2022
@winterqt:nixos.devWinter (she/her)

Does anyone know where the fact that the Darwin stdenv builds CMake twice comes from? As far as I can tell, it's from stage 0, and then just gets used in the other stages from there. Am I missing something here, is it something with the overrides? It looks like it might be, but then the fact that those are only allowed in the final stage (per booter.nix) (when that doesn't seem true, since then they wouldn't be defined...?) comes up.

(Isn't this the same pattern (defining in one stage and referencing in the others) that makes Glibc only build a limited number of times in the Linux stdenv?)

08:00:17
@trofi:matrix.orgtrofi

You think cmake should be rebuild less? Or more?

glibc's is probably a bit different as it's a part of stdenv.cc.libc and mainly used by that I would guess. Also, if depends if the package is used or not by other packages in the derivation would affect rebuild count as well.

14:59:09
@trofi:matrix.orgtrofi Looking at stdenv's dep tree I see 2 cmake-boot hashes and one cmake hash: https://dpaste.com/8GGM6P9BF.txt 15:03:11
@winterqt:nixos.devWinter (she/her)
In reply to @trofi:matrix.org

You think cmake should be rebuild less? Or more?

glibc's is probably a bit different as it's a part of stdenv.cc.libc and mainly used by that I would guess. Also, if depends if the package is used or not by other packages in the derivation would affect rebuild count as well.

I have no particular opinion, I'm just curious how that happens.
21:22:09
@winterqt:nixos.devWinter (she/her) Oh, for clarification, I was talking about cmake-boot. 21:22:19
@winterqt:nixos.devWinter (she/her) (which is cmake in the stdenv stages) 21:22:29
@winterqt:nixos.devWinter (she/her)see the line i linked21:22:36
@trofi:matrix.orgtrofi AFAIU cmake = cmakeMinimal is only for stage1-4 (first build: bootstrapTools -> cmake-boot in pastebin). Last stage uses cmake as is. Also note that cmakeMinimal is used by zstd (used by final stage, does second build: stage4 -> cmake-boot -> zstd in pastebin). 21:44:31
@trofi:matrix.orgtrofi I used the following command to grep through the full depgraph: $ nix-store --query --graph $(nix-instantiate -A stdenv --argstr system x86_64-darwin) 21:45:39
10 Aug 2022
@luxus:furiosa.orgluxus joined the room.09:55:36
17 Aug 2022
@trofi:matrix.orgtrofi Quiz question: for a final glibc used in nixpkgs all over the place which gcc you think is used to build it on linux? a) Possible answers: gcc from bootstrap tools b) gcc from nixpkgs. 17:36:21

Show newer messages


Back to Room ListRoom Version: 9