Skip to content
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

'Permission denied' error in module system deep dive tutorial #1067

Open
srdtrk opened this issue Oct 21, 2024 · 1 comment
Open

'Permission denied' error in module system deep dive tutorial #1067

srdtrk opened this issue Oct 21, 2024 · 1 comment
Labels
site Improvements to the site infrastructure or content presentation

Comments

@srdtrk
Copy link

srdtrk commented Oct 21, 2024

Problem

When going through the Module system deep dive tutorial, in section 2.6, running

nix-build eval.nix -A config.scripts.output
./result/bin/map

(even with sudo) returns

./result/bin/map: line 8: /nix/store/4cf5pb5pp11dg7kca57qfc2agig2ny7h-map.sh: Permission denied
feh WARNING: /tmp/feh_stdin_tna0vO - Invalid image file
feh: No loadable images specified.
See 'man feh' for detailed usage information

Willing to help?
I'm not sure how to fix this as I'm new to nix. Please let me know if I'm missing something

@srdtrk srdtrk added the site Improvements to the site infrastructure or content presentation label Oct 21, 2024
@infinisil
Copy link
Member

Sounds like you might need to make map.sh exectuable:

chmod +x map.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site Improvements to the site infrastructure or content presentation
Projects
None yet
Development

No branches or pull requests

2 participants