From 0cb1e783c083337e518bc58ddfdb5242d0c68fb1 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 30 Dec 2023 11:47:59 +0800 Subject: [PATCH] flake: cleanup tmpdir management --- flake.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 9a2cdee..ba32a37 100644 --- a/flake.nix +++ b/flake.nix @@ -25,7 +25,7 @@ buildPhase = '' # kicad-cli requires the use of $HOME - TMP_DIR="$(pwd)/$(mktemp -d tmp.XXXX)" + TMP_DIR="$(mktemp --tmpdir -d kicad-kirdy.XXXXXXX)" export HOME=$TMP_DIR SCH=kirdy.kicad_sch @@ -52,8 +52,6 @@ kicad-cli pcb export drill $PCB -u mm --generate-map --map-format gerberx2 -o ./$PREFIX"_gerber_drill"/ zip -r -j $PREFIX"_gerber_drill" $PREFIX"_gerber_drill" - - rm -r $TMP_DIR ''; installPhase = ''