-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Allow packages to point outside their directory #64
Comments
A big motivation for this is avoiding action at a distance. Having this restriction makes it very clear that nothing outside the package directory can influence its result. And specifically in the case of the manuals, it hints at a deeper problem: The fact that the top-level Nixpkgs value ( The only solution for that is to create a separate top-level value that doesn't have this issue. Perhaps something like:
|
I also get the error with NixOS/nixpkgs#337033, see output at: I dont know if What's your advice ? Note: I wish the nixpkgs CI would give more pointers to help understand the message like sharing the link to this repo. |
Oh I actually talked about this at NixCon: https://media.ccc.de/v/nixcon-2023-35713-not-all-packages-anymore-nix#t=742 Summarising and expanding:
For your specific case @teto, it sounds like |
Opened #97 to improve the error :) |
thanks for the quick feedback and the pointers. I've used your last trick: I had tried beforehand to add a symlink towards pluginupdate.py in the same folder but this tool caught the hack so good job ^^'' |
For derivations that wrap things in nixpkgs itself -- for instance, the NixOS manual and the Nixpkgs manual -- the rule that paths are found only in the by-name directory itself is too restrictive. It's a good default, but there should be an opt-out mechanism.
I ran into this implementing NixOS/nixpkgs#311459.
The text was updated successfully, but these errors were encountered: