Skip to content

Expose /etc/nsswitch.conf and /etc/protocols etc to sandboxed nix builds? #1238

@bennofs

Description

@bennofs

Right now, the following derivation fails in the nix sandbox:

with (import <nixpkgs> { config = {}; });

stdenv.mkDerivation {
  name = "networking";
  buildCommand = ''
    ${strace}/bin/strace getent protocols tcp > $out
  '';
}

This means that even packages that run their own server on localhost for testing fail, because getprotobyname fails.

Metadata

Metadata

Assignees

Labels

UXThe way in which users interact with Nix. Higher level than UI.
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions