Using arm macOS 14.16.1. I’m encountering this error when I run darwin-rebuild switch
after I changed the home manager setting programs.neovim.package = unstable.neovim
using nixpkgs-unstable
ref of nixpkgs.
output of nix log /nix/store/n0wiw3j8d7l9l9ylzpd35mqfc7qzxysi-neovim-0.10.1.drv
structuredAttrs is enabled
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
Generating remote plugin manifest
touch: cannot touch '/nix/store/1zz6rbbxm61wfcc71rpi4kdc0l4js6g6-neovim-0.10.1/rplugin.vim': Permission denied
Not sure if I have permission issues in the nix store or what’s going on, I’m newer to nix. Any help would be appreciated thanks!
I used the determinate systems installer, following their instructions
Sandro
September 11, 2024, 12:35pm
4
Did you disable the sandbox?
It was off by default from nix-darwin, tried rebuilding with and without it enabled and received the same error both times.
clvx
October 2, 2024, 12:12pm
6
Same thing is happening in NixOS 24.05
{ pkgs, pkgs-unstable, ... }:
programs.neovim = {
enable = true;
vimAlias = true;
package = pkgs-unstable.neovim;
};
...
mou
October 7, 2024, 12:49pm
7
Today, I faced the same problem with the same configuration as @clvx . Maybe someone could suggest a revision of unstable, which is known to work?
mou
October 7, 2024, 2:06pm
8
I tried to build using latest nixpkg revision which contains 0.10.0, github:NixOS/nixpkgs/997332b0816e693d7985138f78757280245f7933
, but no success.
last 7 log lines:
> structuredAttrs is enabled
> Running phase: patchPhase
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> no configure script, doing nothing
> Running phase: buildPhase
> /nix/store/dh51sh0h7h69c944wckig110n8qvm6kj-make-shell-wrapper-hook/nix-support/setup-hook: line 116: /nix/store/bm8hggjmpprs09p76jfi0a5sjhcmcch7-neovim-0.10.0/bin/nvim-python3: Permission denied
For full logs, run 'nix log /nix/store/yavi6whd1isspqpycmylavppmbih284q-neovim-0.10.0.drv'.
error: 1 dependencies of derivation '/nix/store/jhlg6cn3shkvxrgax69kr75y2zxd0ak8-home-manager-applications.drv' failed to build
error: 1 dependencies of derivation '/nix/store/j41g9mbnz7svpa8csmnhkgi1m1a9sp4z-home-manager-fonts.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kg6k991pvnjbkfds2g041p417whraa0y-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6ar6wj9l84wab996vzvijf6q0vvwxv46-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0nmsz5xwa7y64y2mgpgiizc7az7ypq51-user-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bl1xglc06n1pk7l7m1rhpigsx1p0ny28-activation-mou.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9zcm5z1vwh0w7whg9k6c1hszndl01rvf-darwin-system-24.05.20240911.e65aa83+darwin5.f61d5f2.drv' failed to build
mou
October 7, 2024, 3:49pm
9
Looks like this issue is specific to a combination of nix-darwin and home-manager. Because I was able to install neovim from the latest unstable using nix-darwin environment.systemPackages