flake: cleanup tmpdir management
This commit is contained in:
parent
bf536b1b1e
commit
b119e04c73
@ -21,7 +21,7 @@
|
||||
echo ${variant}
|
||||
|
||||
# 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_LD_adapter_${variant}.kicad_sch
|
||||
@ -48,8 +48,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 = ''
|
||||
@ -72,7 +70,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
|
||||
|
||||
PCB=kirdy_LD_adapter_copper_plate.kicad_pcb
|
||||
@ -83,8 +81,6 @@
|
||||
|
||||
export KICAD7_3DMODEL_DIR=${pkgs.kicad.libraries.packages3d}/share/kicad/3dmodels
|
||||
kicad-cli pcb export step $PCB --subst-models --force -o $PREFIX.step
|
||||
|
||||
rm -r $TMP_DIR
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
Loading…
Reference in New Issue
Block a user