kicad: fix paths to 3d models

This commit is contained in:
wuyoli
2025-07-20 21:55:38 +02:00
parent 65cb161317
commit 66b5d118cd
@@ -24,9 +24,13 @@ let
zip
];
postInstall = lib.optional (name == "packages3d") ''
find $out -type f -name '*.step' | parallel 'stepreduce {} {} && zip -9 {.}.stpZ {} && rm {}'
'';
postInstall =
lib.optionalString (name == "packages3d") ''
find $out -type f -name '*.step' | parallel 'stepreduce {} {} && zip -9 {.}.stpZ {} && rm {}'
''
+ lib.optionalString (name == "footprints") ''
grep -rl '\.step' $out | xargs sed -i 's/\.step/.stpZ/g'
'';
meta = {
license = lib.licenses.cc-by-sa-40;