-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
buildEnv: support force-creating all directories and symlinking only files #4621
Comments
This also would be good for abbradar@4ecc6d5 . buildEnv is actually a very good and clean way to create such wrappers in my opinion, apart from this issue. |
👍 This would be useful, indeed. |
I'd go for listing directories that shall not be symlinked. |
My use-case required all directories to be created for real, because I don't know ahead of time the names of those directories. |
For recent examples of workarounds see https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/dwarf-fortress/wrapper/default.nix#L23. I have quite a bit of those scattered across nixpkgs now. |
Dealing with NixOS/nix#341 will (probably) include implementing Hopefully the issue won't be stranded for too long anymore. |
I've opened a PR that creates directories for all pathsToLink (#16828). While it not exactly follows this proposal, it may fix the issue when names are known ahead of time ( |
Note that we also have |
So between @rasendubi’s comment and @vcunat’s comment, can this issue be considered fixed? |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
This would simplify, for example, #4577 expression (or maybe there is just another, better way?). Another (more grained) approach would be to add a list argument which specifies directories that should be created and not symlinked.
The text was updated successfully, but these errors were encountered: