kicad: fix paths inside compressed step files (#495672)

This commit is contained in:
nixpkgs-ci[bot]
2026-03-03 15:55:59 +00:00
committed by GitHub
+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'