Skip to content

Commit

Permalink
kicad: fix build
Browse files Browse the repository at this point in the history
disable scripting support as 92261 broke wxPython_4_0
  and i haven't managed to get wxPython 4.1 to work

something caused makeWrapper to have to be added on its own
  not sure where it came from before...

and some cleanup
  • Loading branch information
evils authored and veprbl committed Jul 24, 2020
1 parent e842233 commit b6863cb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pkgs/applications/science/electronics/kicad/default.nix
@@ -1,4 +1,5 @@
{ lib, stdenv, gnome3, pkgs, wxGTK30, wxGTK31
{ lib, stdenv, gnome3, wxGTK30, wxGTK31
, makeWrapper
, gsettings-desktop-schemas, hicolor-icon-theme
, callPackage, callPackages
, librsvg, cups
Expand All @@ -8,7 +9,7 @@
, oceSupport ? false, opencascade
, withOCCT ? true, opencascade-occt
, ngspiceSupport ? true, libngspice
, scriptingSupport ? true, swig, python3
, scriptingSupport ? false, swig, python3
, debug ? false, valgrind
, with3d ? true
, withI18n ? true
Expand All @@ -31,9 +32,8 @@ let
# but brings high DPI support?
else wxGTK31.override { withGtk2 = false; };

pythonPackages = python.pkgs;
python = python3;
wxPython = pythonPackages.wxPython_4_0;
wxPython = python.pkgs.wxPython_4_0;

in
stdenv.mkDerivation rec {
Expand All @@ -55,10 +55,11 @@ stdenv.mkDerivation rec {
dontFixup = true;

pythonPath = optionals (scriptingSupport)
[ wxPython pythonPackages.six ];
[ wxPython python.pkgs.six ];

nativeBuildInputs = optionals (scriptingSupport)
[ pythonPackages.wrapPython ];
nativeBuildInputs = [ makeWrapper ]
++ optionals (scriptingSupport)
[ python.pkgs.wrapPython ];

# wrapGAppsHook added the equivalent to ${base}/share
# though i noticed no difference without it
Expand Down

0 comments on commit b6863cb

Please sign in to comment.