Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Set gemset.nix file permissions: 0644 #29
This can be problematic in certain cases. For example, I used bundix to package a gem in an overlay that's part of my nixos configuration, and is thus owned by root. As a non-root user, I added a
Changing the permissions to 0644 fixes this issue, and matches the Gemfile.lock file permissions.
I'm assuming the 0600 permissions were an artifact of
I tested the
Set the permissions on gemset.nix to match those of the other files (e.g. Gemfile.lock). Allowing read access to users other than the file owner is important if bundix is being used with the intent of copying the resulting derivation to a root-owned overlay as part of a nixos configuration. Otherwise, if a non-root user tries to invoke a nix-shell with access to the resulting derivation, they'll fail due to a lack of read permissions.
@zimbatm I was hoping to do something like your change, but it doesn't work.
In the shell:
The docs also mention that unlike
It looks like we either need to run