17 Jul 2025 |
Randy Eckenrode | I have a fix for Darwin in my branch. It includes the headers always. | 00:23:24 |
Randy Eckenrode | Need to get back to having time, so I cN finish splitting up my branch. | 00:23:46 |
Randy Eckenrode | * | 00:23:52 |
Grace | In reply to @reckenrode:matrix.org Add NIX_CFLAGS_COMPILE = "-I${lib.getInclude stdenv.cc.libcxx}/include/c++/v1"; when stdenv.cc.isClang . hmm, that didn’t seem to work. Same error | 00:40:16 |
Grace | this is the derivation: https://privx.li/2PnPdlScU | 00:40:59 |
Grace | I’m not sure if this matters, but this is a weird package that includes a submodule, and it’s the submodule’s compilation that (seems to be) failing | 00:42:13 |
Grace | The funny thing is that this submodule exists in the package tree and seems to be fine? but is horrifically antiquated - https://github.com/NixOS/nixpkgs/blob/nixpkgs-unstable/pkgs/development/libraries/isl/generic.nix
I tried putting in the depsBuildBuild = [ pkgs.buildPackages.stdenv.cc ]; which is on the package tree version as well, but it didn’t work
| 00:49:32 |
Randy Eckenrode | Do you have xcbuild as a nativeBuildInput ? | 00:59:05 |
Grace | trying that now. didn’t think of that since the original ISL package didn’t include it | 00:59:33 |
Grace | In reply to @reckenrode:matrix.org Do you have xcbuild as a nativeBuildInput ? slight change in error message (addition of “can be found with sysroot set”
> checking whether /nix/store/4633qrh7xgiwlkv1n9qwvily3bl9zy7p-llvm-19.1.7-dev/bin/clang can find standard include files... no
> checking for xcode-select... xcode-select
> checking whether standard include files can be found with sysroot set... no
> configure: error: Cannot find standard include files
> configure: error: ./configure failed for interface
> configure: error: ./configure failed for isl
For full logs, run:
| 01:01:36 |
mall0c | has anybody been able to get nh and nom to work with nix on macOS? Doesn’t seem to print any extra build information. Tried both the nh command and piping to nom | 14:45:13 |
mall0c | Or is this only useful for nixOS? | 14:45:34 |
gigamonster256 | nh darwin switch? | 14:46:33 |
debtquity | ah so the intermediate build output is only generated if there were any updates to nix store (ie, nix flake update ) | 15:20:21 |
debtquity | Should I continue to ignore the result directory? | 16:40:00 |
Cu3PO42 | I just ran into an interesting issue. macOS doesn't like it when the interpreter in a shebang is another script. This breaks patchShebangs with bun, for example (since bun provided by Nix is wrapped). On the one side, I can easily work around this, on the other this seems universal enough that I would expect there to be an established fix. | 20:25:45 |
Cu3PO42 | That said, I haven't found anything so far. The easiest way to fix this, it seems, would be to prepend env (or maybe env -S if there's an additional argument) in the affected cases. I suppose I'll create an issue. | 20:35:55 |
Randy Eckenrode | In reply to @Cu3PO42:matrix.org I just ran into an interesting issue. macOS doesn't like it when the interpreter in a shebang is another script. This breaks patchShebangs with bun, for example (since bun provided by Nix is wrapped). On the one side, I can easily work around this, on the other this seems universal enough that I would expect there to be an established fix. makeBinaryWrapper is the standard solution. | 23:22:15 |
18 Jul 2025 |
sellout | Ah, I ran into that myself once: https://github.com/NixOS/nix/issues/9488 | 04:39:39 |
Cu3PO42 | Thanks for pointing me in that direction! For now I went with the simple solution of patching the shebang myself and setting env as the interpreter. I still want to open an issue upstream to see if people would be amenable to slightly increasing the power of patchShebangs to account for this. | 06:10:29 |
Cu3PO42 | Thanks for adding that reference! I didn't find that issue :-) (I naively only searched in nixos/nixpkgs). | 06:11:19 |
Keir Lawson | Dumb question, I have nix Darwin set up with flakes I believe, how do I trigger a general update of packages? | 10:04:45 |
K900 | nix flake update ? | 10:09:01 |
prince213 | If you have Homebrew then also maybe brew update && brew upgrade | 10:37:56 |
Sarah Clark | Assuming you're using nix-darwin:
nix flake update
darwin-rebuild switch --flake {path-to-flake}
| 16:23:08 |
Sarah Clark | You might need to put sudo before the rebuild | 16:23:44 |
Sarah Clark | What's the easiest way to get a Darwin reviewer on a PR? | 18:35:54 |
Sarah Clark | * What's the best way to get a Darwin reviewer on a PR? | 18:36:29 |
toonn | Pinging darwin-maintainers, or darwin-core but that's reserved for *serious* business. | 18:40:05 |
Sarah Clark | Thank you | 18:40:52 |