assorted: ensure mktemp places temporaries in /tmp

This commit is contained in:
2025-03-28 05:42:20 +00:00
parent 0cc171734a
commit 0c24119f0f
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ lib.optionalAttrs false # disabled until i can be sure it's not gonna OOM my se
description = "build a nixos image with all updated deps";
path = with pkgs; [ coreutils git nix ];
script = ''
working=$(mktemp -d /tmp/nixos-prebuild.XXXXXX)
working=$(mktemp -d nixos-prebuild.XXXXXX --tmpdir)
pushd "$working"
git clone https://git.uninsane.org/colin/nix-files.git \
&& cd nix-files \

View File

@@ -42,7 +42,7 @@ stdenv.mkDerivation {
runtimeInputs = [ curl git gzip ];
text = ''
set -x
pushd "$(mktemp -d opencellid.XXXXXXXX)"
pushd "$(mktemp -d opencellid.XXXXXXXX --tmpdir)"
git clone git@git.uninsane.org:colin/opencellid-mirror.git
cd opencellid-mirror