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