Hi,
I am having some trouble building/installing vscode using home-manager. After trying different pinned nixpkgs versions with HM (vscode 1.43), I tried running nix-build -A vscode
on the tip of the master branch (commit 8262ecd369c – vscode 1.44).
This is the error
.
.
.
building '/nix/store/aa4gcym8i6b5i2j6l3fj30fd8mwgcq1z-code.desktop.drv'...
Running desktop-file validation
Running desktop-file validation
dyld: Library not loaded: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
Referenced from: /nix/store/vhp0hj6r62cj7y1wbwy885xxr1f2m42a-glib-2.64.1/lib/libglib-2.0.0.dylib
Reason: no suitable image found. Did find:
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation: file system sandbox blocked stat()
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation: file system sandbox blocked stat()
dyld: Library not loaded: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
Referenced from: /nix/store/vhp0hj6r62cj7y1wbwy885xxr1f2m42a-glib-2.64.1/lib/libglib-2.0.0.dylib
Reason: no suitable image found. Did find:
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation: file system sandbox blocked stat()
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation: file system sandbox blocked stat()
/private/tmp/nix-build-code-url-handler.desktop.drv-0/.attr-0: line 20: 10030 Abort trap: 6 /nix/store/58w53b1if85vz14iwgwzapji27glxdd0-desktop-file-utils-0.24/bin/desktop-file-validate "$out/share/applications/code-url-handler.desktop"
/private/tmp/nix-build-code.desktop.drv-0/.attr-0: line 26: 10031 Abort trap: 6 /nix/store/58w53b1if85vz14iwgwzapji27glxdd0-desktop-file-utils-0.24/bin/desktop-file-validate "$out/share/applications/code.desktop"
builder for '/nix/store/aa4gcym8i6b5i2j6l3fj30fd8mwgcq1z-code.desktop.drv' failed with exit code 134
cannot build derivation '/nix/store/yqii2g6y14kpn1gq30xa2x90gc1z1nbf-vscode-1.44.0.drv': 1 dependencies couldn't be built
error: build of '/nix/store/yqii2g6y14kpn1gq30xa2x90gc1z1nbf-vscode-1.44.0.drv' failed
But I can build vscodium
$ nix-build -A vscodium
these paths will be fetched (57.15 MiB download, 228.90 MiB unpacked):
/nix/store/5m1v3ffafnp3332m4lgn7dd4x6dpg2wj-vscodium-1.44.0
copying path '/nix/store/5m1v3ffafnp3332m4lgn7dd4x6dpg2wj-vscodium-1.44.0' from 'https://cache.nixos.org'...
/nix/store/5m1v3ffafnp3332m4lgn7dd4x6dpg2wj-vscodium-1.44.0
But the out-path is fetched from the distributed cache, and I guess this explains why vscodium can be built without any errors.
Does anyone know why the dynamic linking isn’t working. I am sorry clang (or gcc) is not my expertise, and I need some help.
Note
On linux nix-build -A vscode
is succesful at the tip of the master branch. So this is related to OS X (darwin). But this was expected.