!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1129 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org183 Servers

Load older messages


SenderMessageTime
13 Sep 2025
@kfiz:matrix.sopado.dekfiz So I've been pulling in wl-clipboard - which as discussed above pulls in wayland - directly via an option in my neovim config. That was the reason for my build failures. neovim package itself builds fine. 13:04:25
@oak:universumi.fioak 🏳️‍🌈♥️ changed their profile picture.09:45:45
@corridor4572:matrix.orgRichInOverdraft removed their profile picture.16:44:37
@validitymaiden:matrix.orgvaliditymaiden set a profile picture.17:31:45
@validitymaiden:matrix.orgvaliditymaiden changed their profile picture.17:32:26
14 Sep 2025
@reckenrode:matrix.orgRandy Eckenrode I made a note of the two ld64 PRs. emily, are there any others planned? I probably won’t update my branch with the patches until I do the ld64 update. 00:34:11
@reckenrode:matrix.orgRandy Eckenrode * I made a note of the two ld64 PRs. @emilazy:matrix.org, are there any others planned? I probably won’t update my branch with the patches until I do the ld64 update, but I want to make sure I have all the fixes. 00:34:24
@emilazy:matrix.orgemilyfor ld64? that's all I'm running with00:35:11
@emilazy:matrix.orgemilythere's other PRs in the pipeline but not ld64 ones00:35:23
@dran1x:matrix.orgdran1x joined the room.03:26:10
@emma:rory.gayEmma [it/its] joined the room.08:39:49
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoeIs there any gcc alias for clang in macos nix?13:40:28
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoeSome app by node-gyp relies on gcc, such as tree-sitter13:41:28
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe* Some app by node-gyp relies on gcc command, but use clang parameters, such as tree-sitter13:42:20
@reckenrode:matrix.orgRandy EckenrodeWe typically patch those builds not to hardcode a compiler.13:43:02
@reckenrode:matrix.orgRandy Eckenrode Or using something like cc${stdenv.cc.targetPrefix}. 13:48:26
@reckenrode:matrix.orgRandy Eckenrode * Or using something like ${stdenv.cc.targetPrefix}cc. 13:49:38
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe
npm error path /private/tmp/nix-build-code-oss-1.104.0.drv-0/source/build/node_modules/tree-sitter
npm error command failed
npm error command sh -c node-gyp-build
npm error make: 进入目录“/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/build/node_modules/tree-sitter/build”
npm error   TOUCH Release/obj.target/node_modules/node-addon-api/node_addon_api_except.stamp
npm error   CC(target) Release/obj.target/tree_sitter/vendor/tree-sitter/lib/src/lib.o
npm error make: 离开目录“/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/build/node_modules/tree-sitter/build”
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@11.4.2
npm error gyp info using node@22.19.0 | darwin | arm64
npm error gyp info find Python using Python version 3.13.7 found at "/nix/store/i8r431v9g2hwh9g0kkp2lrgd426szgnq-python3-3.13.7/bin/python3"
npm error gyp info spawn /nix/store/i8r431v9g2hwh9g0kkp2lrgd426szgnq-python3-3.13.7/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/build/node_modules/tree-sitter/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/private/tmp/nix-build-code-oss-1.104.0.drv-0/.home/Library/Caches/node-gyp/22.19.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/private/tmp/nix-build-code-oss-1.104.0.drv-0/.home/Library/Caches/node-gyp/22.19.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/private/tmp/nix-build-code-oss-1.104.0.drv-0/.home/Library/Caches/node-gyp/22.19.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/build/node_modules/tree-sitter',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error In file included from ../vendor/tree-sitter/lib/src/lib.c:1:
npm error In file included from ../vendor/tree-sitter/lib/src/./alloc.c:1:
npm error ../vendor/tree-sitter/lib/src/./alloc.h:8:10: fatal error: 'stdbool.h' file not found
npm error     8 | #include <stdbool.h>
npm error       |          ^~~~~~~~~~~
npm error 1 error generated.
npm error make: *** [tree_sitter.target.mk:128:Release/obj.target/tree_sitter/vendor/tree-sitter/lib/src/lib.o] 错误 1
npm error gyp ERR! build error 
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/node_modules/node-gyp/lib/build.js:219:23)
npm error gyp ERR! System Darwin 24.5.0
npm error gyp ERR! command "/nix/store/3scj3c1qxh5iclf8jy5hbl9pki40y77n-nodejs-22.19.0/bin/node" "/private/tmp/nix-build-code-oss-1.104.0.drv-0/source/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /private/tmp/nix-build-code-oss-1.104.0.drv-0/source/build/node_modules/tree-sitter
npm error gyp ERR! node -v v22.19.0
npm error gyp ERR! node-gyp -v v11.4.2
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /private/tmp/nix-build-code-oss-1.104.0.drv-0/cache/_logs/2025-09-14T13_54_19_466Z-debug-0.log
ERR Process exited with code: 1
npm error code 1
npm error path /private/tmp/nix-build-code-oss-1.104.0.drv-0/source
npm error command failed
npm error command sh -c node build/npm/postinstall.js
npm error A complete log of this run can be found in: /private/tmp/nix-build-code-oss-1.104.0.drv-0/cache/_logs/2025-09-14T13_53_42_754Z-debug-0.log
13:55:02
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoeI encountered a very weird error, by compile vscode13:55:28
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoeI added llvmPackages_17.clang in nativeBuildInputs, it also not works13:56:26
@emilazy:matrix.orgemily we already have a tree-sitter package, try devendoring it 13:56:36
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoeBy I need node-tree-sitter13:58:13
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe

npm error ../vendor/tree-sitter/lib/src/./alloc.h:8:10: fatal error: 'stdbool.h' file not found
npm error 8 | #include <stdbool.h>
npm error | ^~~~~~~~~~~
npm error 1 error generated.

This shouldn't be, I already added

llvmPackages.clang
llvmPackages.libcxx
llvmPackages.libclang
cctools
cctools.libtool
14:00:35
@reckenrode:matrix.orgRandy EckenrodeThat happens when you use an unwrapped compiler.14:01:08
@reckenrode:matrix.orgRandy EckenrodeAlso, which LLVM versions are being dropped? Doesn’t that includr LLVM 17?14:01:44
@reckenrode:matrix.orgRandy Eckenrode * 14:01:51
@emilazy:matrix.orgemilyyes14:01:54
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoeOh, I see gcc-alias-by-clang = runCommand "gcc-alias-by-clang" { } '' mkdir -p $out/bin ln -s ${clang.cc}/bin/clang $out/bin/gcc ln -s ${clang.cc}/bin/clang++ $out/bin/g++ ''; I added gcc-alias-by-clang14:01:57
@k900:0upti.meK900This is insane14:02:15
@k900:0upti.meK900What the fuck are you doing that requires this14:02:20

Show newer messages


Back to Room ListRoom Version: 6