-
-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mkdir fails with 'Operation not permitted' for some packages during build #1315
Comments
My first thought is that you might have |
I didn't enable it in my config and in > cat /etc/nix/nix.conf
# WARNING: this file is generated from the nix.* options in
# your nix-darwin configuration. Do not edit it!
allowed-users = *
auto-optimise-store = false
build-users-group = nixbld
builders =
cores = 0
experimental-features = nix-command flakes
extra-nix-path = nixpkgs=flake:nixpkgs
extra-platforms = x86_64-darwin aarch64-darwin
extra-sandbox-paths =
max-jobs = auto
require-sigs = true
sandbox = false
sandbox-fallback = false
substituters = https://nix-community.cachix.org https://cache.nixos.org https://cache.flox.dev https://cache.nixos.org/
trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
trusted-substituters =
trusted-users = artemii @admin root
experimental-features = nix-command flakes
builders-use-substitutes = true
build-use-substitutes = true |
I think it may somehow be correlated with builders, because the only directories which have non- >ls -la /nix/store/ -g | grep "_nixbld"
drwxr-xr-x - _nixbld1 nixbld 2 Feb 13:35 gk7z1mxshdc5ka60f55fzpqal9821n20-vscode-1.96.4
drwxr-xr-x - _nixbld3 nixbld 2 Feb 11:04 j440dcc757sdc5alah6c1h1044v28mh1-yarn-cache |
It seems like an overlay works like a workaround for some reason vscode = prev.vscode.overrideAttrs (old: {
installPhase = "whoami\n" + old.installPhase;
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some reason when I run
switch
command it fails withmkdir: cannot create directory `/nix/store/.../.app: Operation not permitted
The issue occurred for me with two packages at the time: vscode 1.96.4 and Raycast 1.90.0.
> nix --version nix (Nix) 2.25.3
If I try to download a package source flake locally and include it with
(pkgs.callPackage ./pkgs/raycast { })
for example, it starts working without errors.The text was updated successfully, but these errors were encountered: