-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Expose /etc/nsswitch.conf
and /etc/protocols
etc to sandboxed nix builds?
#1238
Comments
See alephcloud/hs-configuration-tools#40 for a package affected by this |
Seems reasonable to me. Would need to switch on host system since these don't exist on Darwin. My inclination would be to have them contain super boring predefined values that Nix defines somewhere, rather than passing through the host. That improves determinism, and we likely don't need anything fancy someone might have added to |
+1, just being able to do reverse dns on |
If I understand correctly this needs This is for my use case: reverse dns. For this issue specifically probably other services as well. |
@domenkozar yes, and we should probably also use |
(And add |
I think this can already be done using |
What I was proposing was for them to be dummy files though, much like how |
Yes, but especially for /etc/services it's not clear what the dummy contents should be. |
@edolstra is there no standard The fact that there is no standard even increases the need to put a dummy into the build env for determinism. |
On Linux I currently use |
Just ran into another use case where this would have been incredibly helpful to have an |
I marked this as stale due to inactivity. → More info |
Right now, the following derivation fails in the nix sandbox:
This means that even packages that run their own server on localhost for testing fail, because
getprotobyname
fails.The text was updated successfully, but these errors were encountered: