| 3 Oct 2025 |
dramforever | and /nix/store/pxg5anhdr87k9l46wzq9dnj1iirq6i7z-llvm-21.1.1.drv | 14:27:36 |
Grimmauld (migrated to @grimmauld:m.grimmauld.de) | context? | 14:34:37 |
dramforever | this | 14:34:55 |
dramforever | nix eval github:NixOS/nixpkgs/4447b9d3e439b3c0e0b3f824a28025921797d179#legacyPackages.aarch64-darwin.llvm.src.outPath gives me "/nix/store/l65z6113wqkw3y4wh031r6f1bz67miy7-llvm-src-21.1.1" | 14:35:22 |
Grimmauld (migrated to @grimmauld:m.grimmauld.de) | sec | 14:35:33 |
Grimmauld (migrated to @grimmauld:m.grimmauld.de) | i'll tell you | 14:35:37 |
Grimmauld (migrated to @grimmauld:m.grimmauld.de) | i think its this: https://github.com/NixOS/nixpkgs/blob/cf9a3a11f8d3ac7b612774148560d91ea4e40ac5/pkgs/stdenv/darwin/stdenv-bootstrap-tools.nix#L183 maybe? | 14:38:52 |
Grimmauld (migrated to @grimmauld:m.grimmauld.de) | ah wait thats bin, might not be it | 14:39:04 |
@ghpzin:envs.net | https://github.com/NixOS/nixpkgs/blob/cf9a3a11f8d3ac7b612774148560d91ea4e40ac5/pkgs/development/compilers/llvm/common/llvm/default.nix#L93 | 14:39:18 |
Grimmauld (migrated to @grimmauld:m.grimmauld.de) | but anyways, thats what the bootstrap tools build thing calls | 14:39:21 |
@ghpzin:envs.net | https://github.com/NixOS/nixpkgs/blob/cf9a3a11f8d3ac7b612774148560d91ea4e40ac5/pkgs/development/compilers/llvm/common/llvm/default.nix#L93
llvm-src- builder thing | 14:40:02 |
dramforever | how do i find this from an attribute | 14:40:31 |
dramforever | llvm.src is not that apparently | 14:40:41 |
Grimmauld (migrated to @grimmauld:m.grimmauld.de) | Is llvmPackages.llvm different from llvm somehow? | 14:41:14 |
dramforever | no | 14:41:38 |
dramforever | llvmPackages.llvm.src is the same thing | 14:41:47 |
dramforever | like i'm trying to find a nix eval command that comes up with /nix/store/qwm51br82iq2yxfj3zqil0bpd3vij1sd-llvm-src-21.1.1 | 14:42:23 |
Grimmauld (migrated to @grimmauld:m.grimmauld.de) | you are sure you are on the same nixpkgs rev? | 14:42:57 |
dramforever | i'm looking at https://hydra.nixos.org/build/308137528 | 14:43:19 |
dramforever | inputs -> nixpkgs says 4447b9d3e439b3c0e0b3f824a28025921797d179 | 14:43:33 |
Lun | i slept through getting to panic about this thanks for sorting it! | 14:43:35 |
dramforever | i do nix eval github:NixOS/nixpkgs/4447b9d3e439b3c0e0b3f824a28025921797d179#legacyPackages.aarch64-darwin.llvm.src.outPath and it's not that | 14:43:53 |
dramforever | is it somehow different if i eval on macos | 14:44:05 |
Grimmauld (migrated to @grimmauld:m.grimmauld.de) | https://github.com/NixOS/nixpkgs/blob/cf9a3a11f8d3ac7b612774148560d91ea4e40ac5/pkgs/development/compilers/llvm/common/llvm/default.nix#L49
is this maybe interferring? | 14:44:49 |
dramforever | wtf | 14:45:18 |
Grimmauld (migrated to @grimmauld:m.grimmauld.de) | no worries as long as you don't complain about my shoddy work XD | 14:46:22 |
Lun | iiuc bootstrap compilers being built with this flag basically doesn't matter because we have multiple stages and nothing should really survive from that to be used at runtime on a nixos system, so it would have been ok to flip it off for that.
i like the idea of having aslr for them just so everything's the same but i'm not sure what the threat model is where someone is relying on attacking some memory corruption issue in the bootstrap tools | 14:46:22 |
Lun | * iiuc bootstrap compilers being built with this flag basically doesn't matter because we have multiple stages and nothing should really survive from that to be used at runtime on a nixos system, so it would have been ok to flip it off for that.
i like the idea of having aslr for them just so everything's the same but i'm not sure what the threat model is where someone is relying on attacking some memory corruption issue in the bootstrap phases | 14:47:07 |
dramforever | i have no idea why the "arm64" in whatever thing isn't breaking anything else | 14:50:15 |
dramforever | i wonder if it's some lto test that only happens if some specific supported setup is created | 14:59:58 |