aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Axel Eriksson <john@insane.se>2022-01-15 10:20:18 +0100
committerJohn Axel Eriksson <john@insane.se>2022-01-15 10:20:18 +0100
commit3fff0196cdf0859ee16c719fdc51084a414c8a4d (patch)
treee6c20c9a1185a4d5d5305381c77f9ff0159516be
parent34f2eebd5be06658c04aa7846753d5de124d7195 (diff)
docker: also create var/tmp as some tools rely on it
-rw-r--r--docker.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker.nix b/docker.nix
index ca5d90635..0e29d0e0b 100644
--- a/docker.nix
+++ b/docker.nix
@@ -201,6 +201,8 @@ let
mkdir $out/tmp
+ mkdir $out/var/tmp
+
mkdir -p $out/etc/nix
cat $nixConfContentsPath > $out/etc/nix/nix.conf
@@ -236,6 +238,7 @@ pkgs.dockerTools.buildLayeredImageWithNixDb {
'';
fakeRootCommands = ''
chmod 1777 tmp
+ chmod 1777 var/tmp
'';
config = {