You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did some researches on this on the train back home, and giving worldwide rw permissions to the /nix directory (and /tmp too) solves this as one could expect.
So adding something like this in the Dockerfile resolves this:
RUN chmod -R a+rw /nix/var
RUN chmod 777 /nix/store
RUN chmod 777 /nix/store/*
RUN chmod 777 /tmp
(the three first chmods are just here because doing chmod +R 777 /nix takes too much time and isn't needed)
There is probably be a less hackish and insecure way to solve this given that there is no real need to instanciate any derivation while running the stack build (because everything has been built while creating the image), so write-access to the store shouldn't be needed.
When trying to use this image with
stack --docker
, I run into the errorThis happens for example in the tweag/sparkle repo.
Steps to reproduce
Expected output
The program should build fine
Actual output
The text was updated successfully, but these errors were encountered: