kicad: replace with3DPackages option with an override
This commit is contained in:
parent
38b3292149
commit
9ba406ff1c
@ -5,7 +5,7 @@
|
||||
, oceSupport ? true, opencascade
|
||||
, ngspiceSupport ? true, libngspice
|
||||
, swig, python, pythonPackages
|
||||
, lndir, with3DPackages ? false
|
||||
, lndir
|
||||
}:
|
||||
|
||||
assert ngspiceSupport -> libngspice != null;
|
||||
@ -93,9 +93,7 @@ in stdenv.mkDerivation rec {
|
||||
};
|
||||
};
|
||||
|
||||
modules = with passthru;
|
||||
[ i18n symbols footprints templates ]
|
||||
++ optional with3DPackages packages3d;
|
||||
modules = with passthru; [ i18n symbols footprints templates ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share
|
||||
|
@ -22031,7 +22031,7 @@ in
|
||||
wxGTK = wxGTK30;
|
||||
boost = boost160;
|
||||
};
|
||||
kicad-with-packages3d = kicad.override { with3DPackages = true; };
|
||||
kicad-with-packages3d = kicad.overrideAttrs (old: { modules = old.modules ++ [ old.passthru.packages3d ]; });
|
||||
|
||||
kicad-unstable = python.pkgs.callPackage ../applications/science/electronics/kicad/unstable.nix {
|
||||
wxGTK = wxGTK30;
|
||||
|
Loading…
Reference in New Issue
Block a user