Unverified Commit e0b031b2 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

kicad: fix paths to 3d models (#424699)

parents 55c90b72 66b5d118
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 = {