!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

886 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.186 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
7 Sep 2025
@aspentropy:matrix.orgAspen Smith joined the room.09:43:20
@aspentropy:matrix.orgAspen Smith Sergei Zimmerman (xokdvium): hi! I am at the nixcon hack day, trying to get rid of null-terminated strings; John Ericson told me to reach out to you 09:45:55
@aspentropy:matrix.orgAspen Smithwhen I did pascal-strings for tvix-eval it was like a 15% improvement on evaluating pkgs.hello.outPath09:48:22
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) FWIW Lix is also moving in this direction. https://git.lix.systems/lix-project/lix/issues/963 emily 09:50:17
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Aspen Smith: https://github.com/NixOS/nix/pull/13407 09:57:36
@slime90:matrix.org@slime90:matrix.org left the room.15:39:56
@desttinghim:matrix.org@desttinghim:matrix.org left the room.21:34:45
8 Sep 2025
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)

Some insights into 128 bit atomics in gcc:

https://gcc.gnu.org/legacy-ml/gcc/2018-02/msg00224.html

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84563

00:11:35
@inayet:matrix.orgInayet set a profile picture.02:15:58
@oddlama:matrix.orgoddlama joined the room.13:36:49
@oddlama:matrix.orgoddlama

I'm having trouble overriding stdenv for the nix package:

{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";

  outputs =
    inputs:
    let
      pkgs = import inputs.nixpkgs {
        system = "x86_64-linux";
      };
    in
    {
      packages.x86_64-linux = {
        nix_2_30_clang = pkgs.nixVersions.nix_2_30.override {
          stdenv = pkgs.clangStdenv;
        };
      };
    };
}

Building this package does not actually trigger a build but reuses the gcc artifacts while rebuilding some kind of wrapper (?)

$ nix build .#packages.x86_64-linux.nix_2_30_clang
$ readelf -p .comment ./result/bin/nix
String dump of section '.comment':
  [     1]  GCC: (GNU) 14.3.0

This should probably say something like:

  [     0]  GCC: (GNU) 14.3.0
  [    12]  clang version 18.1.8

Overriding still works for the autoconf based build (nix_2_24) but not for any of the newer package builds. It seems like the override is silently ignored and not passed down to the sub-derivations anymore.

13:50:11

Show newer messages


Back to Room ListRoom Version: 6