Commit 66b5d118 authored by wuyoli's avatar wuyoli
Browse files

kicad: fix paths to 3d models

parent 65cb1613
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -24,8 +24,12 @@ let
          zip
        ];

      postInstall = lib.optional (name == "packages3d") ''
      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 = {