summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-10-13 12:56:57 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2019-10-13 12:57:27 +0100
commite1e6791f142d200b9f4fd79ea1574479a50fc954 (patch)
tree702c3003aa9305ae50dc3e3702ea7f1ad24a7338 /sys-apps/nix
parentprofiles: mask virtual/pam (diff)
downloadgentoo-e1e6791f142d200b9f4fd79ea1574479a50fc954.tar.gz
gentoo-e1e6791f142d200b9f4fd79ea1574479a50fc954.tar.bz2
gentoo-e1e6791f142d200b9f4fd79ea1574479a50fc954.zip
sys-apps/nix: add check for USER_NS
nix-daemon uses user namespaces to build derivations (includeing nix-channel --update). The error is obwerved and reported by RuZzz. Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'sys-apps/nix')
-rw-r--r--sys-apps/nix/nix-2.3.1.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys-apps/nix/nix-2.3.1.ebuild b/sys-apps/nix/nix-2.3.1.ebuild
index bbfe27eb9763..df8590b23b50 100644
--- a/sys-apps/nix/nix-2.3.1.ebuild
+++ b/sys-apps/nix/nix-2.3.1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit autotools flag-o-matic readme.gentoo-r1 user
+inherit autotools flag-o-matic linux-info readme.gentoo-r1 user
DESCRIPTION="A purely functional package manager"
HOMEPAGE="https://nixos.org/nix"
@@ -65,6 +65,13 @@ Next steps:
nix package manager user manual: http://nixos.org/nix/manual/
"
+pkg_pretend() {
+ # USER_NS is used to run builders in a default setting in linux:
+ # https://nixos.wiki/wiki/Nix#Sandboxing
+ local CONFIG_CHECK="~USER_NS"
+ check_extra_config
+}
+
pkg_setup() {
enewgroup nixbld
for i in {1..10}; do