11 pname = "kicad-${name}";
12 version = builtins.substring 0 10 (libSrc name).rev;
16 nativeBuildInputs = [ cmake ]
17 ++ lib.optionals (name == "packages3d") [
23 postInstall = lib.optional (name == "packages3d") ''
24 find $out -type f -name '*.step' | parallel 'stepreduce {} {} && zip -9 {.}.stpZ {} && rm {}'
28 license = lib.licenses.cc-by-sa-40;
29 platforms = lib.platforms.all;
34 symbols = mkLib "symbols";
35 templates = mkLib "templates";
36 footprints = mkLib "footprints";
37 packages3d = mkLib "packages3d";