'Permission denied' error in module system deep dive tutorial
Open
Nobody has claimed this yet.
site
- Dominant language
- Nix
- Stars
- 4k
- Forks
- 339
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 7
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with section 2.6 of the Module system deep dive tutorial and reproduce the documented nix-build and ./result/bin/map commands. Investigate why the generated map script cannot execute; done when the tutorial commands run without the permission error and produce the expected image output.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100