kicad: fix paths inside compressed step files

This commit is contained in:
wuyoli
2026-03-02 01:17:20 +01:00
parent da7f120403
commit 21bfc50d78
+1 -1
View File
@@ -28,7 +28,7 @@ let
postInstall =
lib.optionalString (name == "packages3d") ''
find $out -type f -name '*.step' | parallel 'stepreduce {} {} ${lib.optionalString compressStep "&& zip -9 {.}.stpZ {} && rm {}"}'
find $out -type f -name '*.step' | parallel 'stepreduce {} {} ${lib.optionalString compressStep "&& zip -j -9 {.}.stpZ {} && rm {}"}'
''
+ lib.optionalString ((name == "footprints") && compressStep) ''
grep -rl '\.step' $out | xargs sed -i 's/\.step/.stpZ/g'