flake: cleanup tmpdir management
This commit is contained in:
parent
b5d6ee6035
commit
0cb1e783c0
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
# kicad-cli requires the use of $HOME
|
# 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
|
export HOME=$TMP_DIR
|
||||||
|
|
||||||
SCH=kirdy.kicad_sch
|
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"/
|
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"
|
zip -r -j $PREFIX"_gerber_drill" $PREFIX"_gerber_drill"
|
||||||
|
|
||||||
rm -r $TMP_DIR
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
Loading…
Reference in New Issue