kicad: fix paths to 3d models
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user