git.iko.soy/typeable/nixpkgs
on master help sign in
kicad: replace with3DPackages option with an override
commit9ba406ff1c5f2621f3baf44e2bad32c1e251412f authorDmitry Kalinkin <dmitry.kalinkin@gmail.com> dateSun 24 Mar 2019, 01:33 (8 years ago) parent38b3292
2 files changed+3−5
pkgs/applications/science/electronics/kicad/default.nix+2−4 pkgs/top-level/all-packages.nix+1−1
pkgs/applications/science/electronics/kicad/default.nix+2−4
@@ -5,7 +5,7 @@
55, oceSupport ? true, opencascade
66, ngspiceSupport ? true, libngspice
77, swig, python, pythonPackages
8−, lndir, with3DPackages ? false
8+, lndir
99}:
1010
1111assert ngspiceSupport -> libngspice != null;
@@ -93,9 +93,7 @@ in stdenv.mkDerivation rec {
9393 };
9494 };
9595
96− modules = with passthru;
97− [ i18n symbols footprints templates ]
98− ++ optional with3DPackages packages3d;
96+ modules = with passthru; [ i18n symbols footprints templates ];
9997
10098 postInstall = ''
10199 mkdir -p $out/share
pkgs/top-level/all-packages.nix+1−1
@@ -22031,7 +22031,7 @@ in
2203122031 wxGTK = wxGTK30;
2203222032 boost = boost160;
2203322033 };
22034− kicad-with-packages3d = kicad.override { with3DPackages = true; };
22034+ kicad-with-packages3d = kicad.overrideAttrs (old: { modules = old.modules ++ [ old.passthru.packages3d ]; });
2203522035
2203622036 kicad-unstable = python.pkgs.callPackage ../applications/science/electronics/kicad/unstable.nix {
2203722037 wxGTK = wxGTK30;