Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions pkgs/applications/misc/opencpn/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, cmake, gtk2, wxGTK30, libpulseaudio, curl,
{ stdenv, fetchFromGitHub, pkgconfig, cmake, wxGTK30, libpulseaudio, curl,
gettext, glib, portaudio }:

stdenv.mkDerivation rec {
Expand All @@ -13,14 +13,9 @@ stdenv.mkDerivation rec {
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake gtk2 wxGTK30 libpulseaudio curl gettext
buildInputs = [ cmake wxGTK30 wxGTK30.gtk libpulseaudio curl gettext
glib portaudio ];

cmakeFlags = [
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
];

enableParallelBuilding = true;

meta = {
Expand Down
10 changes: 7 additions & 3 deletions pkgs/applications/misc/prusa-slicer/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, lib, fetchFromGitHub, makeWrapper, cmake, pkgconfig
{ stdenv, lib, fetchFromGitHub, makeWrapper, cmake, pkgconfig, wrapGAppsHook
, boost, cereal, curl, eigen, expat, glew, libpng, tbb, wxGTK30
, gtest, nlopt, xorg, makeDesktopItem
, gtest, nlopt, xorg, makeDesktopItem, gnome3
}:
let
nloptVersion = if lib.hasAttr "version" nlopt
Expand All @@ -17,6 +17,7 @@ stdenv.mkDerivation rec {
cmake
makeWrapper
pkgconfig
wrapGAppsHook
];

buildInputs = [
Expand All @@ -30,10 +31,12 @@ stdenv.mkDerivation rec {
tbb
wxGTK30
xorg.libX11
] ++ checkInputs;
];

checkInputs = [ gtest ];

doCheck = true;

# The build system uses custom logic - defined in
# xs/src/libnest2d/cmake_modules/FindNLopt.cmake in the package source -
# for finding the nlopt library, which doesn't pick up the package in the nix store.
Expand Down Expand Up @@ -66,6 +69,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DSLIC3R_FHS=1"
"-DSLIC3R_WX_STABLE=1" # necessary when compiling against wxGTK 3.0
"-DSLIC3R_GTK=3"
];

postInstall = ''
Expand Down
14 changes: 8 additions & 6 deletions pkgs/applications/misc/slade/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, wxGTK, gtk2, sfml, fluidsynth, curl, freeimage, ftgl, glew, zip }:
{ stdenv, fetchFromGitHub, cmake, pkgconfig, zip, which, wrapGAppsHook
, wxGTK, sfml, fluidsynth, curl, freeimage, ftgl, glew
}:

stdenv.mkDerivation rec {
pname = "slade";
version = "3.1.1.5";
version = "3.1.7";

src = fetchFromGitHub {
owner = "sirjuddington";
repo = "SLADE";
rev = version;
sha256 = "0mdn59jm6ab4cdh99bgvadif3wdlqmk5mq635gg7krq35njgw6f6";
sha256 = "1yfq7ghg9whys7a07xfcza8rwyfhnrcz6qi5bay1ilj3ml4m12zy";
};

nativeBuildInputs = [ cmake pkgconfig zip ];
buildInputs = [ wxGTK gtk2 sfml fluidsynth curl freeimage ftgl glew ];
nativeBuildInputs = [ cmake pkgconfig zip which wrapGAppsHook ];
buildInputs = [ wxGTK wxGTK.gtk sfml fluidsynth curl freeimage ftgl glew ];

enableParallelBuilding = true;

meta = with stdenv.lib; {
description = "Doom editor";
homepage = http://slade.mancubus.net/;
homepage = "http://slade.mancubus.net/";
license = licenses.gpl2;
platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = with maintainers; [ abbradar ];
Expand Down
26 changes: 0 additions & 26 deletions pkgs/applications/misc/slade/git.nix

This file was deleted.

2 changes: 1 addition & 1 deletion pkgs/applications/misc/xchm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
configureFlags = [ "--with-wx-prefix=${wxGTK30}" ];

preConfigure = ''
export LDFLAGS="$LDFLAGS $(${wxGTK30}/bin/wx-config --libs | sed -e s@-pthread@@) -lwx_gtk2u_aui-3.0"
export LDFLAGS="$LDFLAGS $(${wxGTK30}/bin/wx-config --libs | sed -e s@-pthread@@) -lwx_gtk3u_aui-3.0"
'';

meta = with stdenv.lib; {
Expand Down
3 changes: 1 addition & 2 deletions pkgs/applications/networking/ftp/filezilla/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
, dbus
, gettext
, gnutls
, gtk2
, libfilezilla
, libidn
, nettle
Expand Down Expand Up @@ -35,14 +34,14 @@ stdenv.mkDerivation rec {
dbus
gettext
gnutls
gtk2
libfilezilla
libidn
nettle
pugixml
sqlite
tinyxml
wxGTK30
wxGTK30.gtk
xdg_utils
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/science/misc/boinc/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ fetchFromGitHub, stdenv, autoconf, automake, pkgconfig, m4, curl,
libGLU_combined, libXmu, libXi, freeglut, libjpeg, libtool, wxGTK30, xcbutil,
sqlite, gtk2, patchelf, libXScrnSaver, libnotify, libX11, libxcb }:
sqlite, patchelf, libXScrnSaver, libnotify, libX11, libxcb }:

let
majorVersion = "7.14";
Expand All @@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ libtool automake autoconf m4 pkgconfig ];

buildInputs = [
curl libGLU_combined libXmu libXi freeglut libjpeg wxGTK30 sqlite gtk2 libXScrnSaver
curl libGLU_combined libXmu libXi freeglut libjpeg wxGTK30 wxGTK30.gtk sqlite libXScrnSaver
libnotify patchelf libX11 libxcb xcbutil
];

Expand Down
12 changes: 10 additions & 2 deletions pkgs/applications/science/misc/fityk/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, autoreconfHook, wxGTK30, boost, lua, zlib, bzip2
, xylib, readline, gnuplot, swig3 }:
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, wxGTK30, boost, lua, zlib
, bzip2, xylib, readline, gnuplot, swig3 }:

let
name = "fityk";
Expand All @@ -15,6 +15,14 @@ stdenv.mkDerivation {
sha256 = "0kmrjjjwrh6xgw590awcd52b86kksmv6rfgih75zvpiavr1ygwsi";
};

patches = [
# Allow building with GTK 3
(fetchpatch {
url = "https://salsa.debian.org/science-team/fityk/raw/67b995963dba56914d25ab3bbcd420fcba24861d/debian/patches/permit-gtk3.patch";
sha256 = "12by8w0gd0n8qkljn7lhlz9lhdswpkygkpszm77anrqz54hd3gqr";
})
];

nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ wxGTK30 boost lua zlib bzip2 xylib readline
gnuplot swig3 ];
Expand Down
51 changes: 0 additions & 51 deletions pkgs/applications/science/misc/golly/beta.nix

This file was deleted.

10 changes: 6 additions & 4 deletions pkgs/development/libraries/wxsqliteplus/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, wxGTK, wxsqlite3, sqlite }:
{ stdenv, fetchFromGitHub, wrapGAppsHook, wxGTK, wxsqlite3, sqlite, glib }:

stdenv.mkDerivation rec {
pname = "wxsqliteplus";
Expand All @@ -8,10 +8,12 @@ stdenv.mkDerivation rec {
owner = "guanlisheng";
repo = "wxsqliteplus";
rev = "v${version}";
sha1 = "yr9ysviv4hbrxn900z1wz8j32frimvx1";
sha256 = "0mgfq813pli56mar7pdxlhwjf5k10j196rs3jd0nc8b6dkzkzlnf";
};

buildInputs = [ wxGTK wxsqlite3 sqlite ];
nativeBuildInputs = [ wrapGAppsHook ];

buildInputs = [ wxGTK wxsqlite3 sqlite glib ];

makeFlags = [
"LDFLAGS=-L${wxsqlite3}/lib"
Expand All @@ -20,7 +22,7 @@ stdenv.mkDerivation rec {
preBuild = ''
sed -ie 's|all: $(LIBPREFIX)wxsqlite$(LIBEXT)|all: |g' Makefile
sed -ie 's|wxsqliteplus$(EXEEXT): $(WXSQLITEPLUS_OBJECTS) $(LIBPREFIX)wxsqlite$(LIBEXT)|wxsqliteplus$(EXEEXT): $(WXSQLITEPLUS_OBJECTS) |g' Makefile
sed -ie 's|-lwxsqlite |-lwxcode_gtk2u_wxsqlite3-3.0 |g' Makefile
sed -ie 's|-lwxsqlite |-lwxcode_gtk3u_wxsqlite3-3.0 |g' Makefile
'';

installPhase = ''
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/wxwidgets/3.0/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, withMesa ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
, libGLU ? null, libGL ? null
, compat24 ? false, compat26 ? true, unicode ? true
, withGtk2 ? true
, withGtk2 ? false
, withWebKit ? false, webkitgtk24x-gtk2 ? null, webkitgtk ? null
, AGL ? null, Carbon ? null, Cocoa ? null, Kernel ? null, QTKit ? null
}:
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/wxwidgets/3.1/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
, libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
, withMesa ? libGLSupported, libGLU ? null, libGL ? null
, compat28 ? false, compat30 ? true, unicode ? true
, withGtk2 ? true
, withGtk2 ? false
, withWebKit ? false, webkitgtk24x-gtk2 ? null, webkitgtk ? null
, AGL ? null, Carbon ? null, Cocoa ? null, Kernel ? null, QTKit ? null
}:
Expand Down
7 changes: 3 additions & 4 deletions pkgs/development/python-modules/wxPython/3.0.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ buildPythonPackage rec {
--replace "return wxPyTestDisplayAvailable();" "return true;"
'' + lib.optionalString (!stdenv.isDarwin) ''
substituteInPlace wx/lib/wxcairo.py \
--replace 'cairoLib = None' 'cairoLib = ctypes.CDLL("${cairo}/lib/libcairo.so")'
substituteInPlace wx/lib/wxcairo.py \
--replace 'cairoLib = None' 'cairoLib = ctypes.CDLL("${cairo}/lib/libcairo.so")' \
--replace '_dlls = dict()' '_dlls = {k: ctypes.CDLL(v) for k, v in [
("gdk", "${wxGTK.gtk}/lib/libgtk-x11-2.0.so"),
("gdk", "${wxGTK.gtk}/lib/libgdk-3.so"),
("pangocairo", "${pango.out}/lib/libpangocairo-1.0.so"),
("appsvc", None)
]}'
Expand All @@ -68,7 +67,7 @@ buildPythonPackage rec {
buildPhase = "";

installPhase = ''
${python.interpreter} setup.py install WXPORT=${if stdenv.isDarwin then "osx_cocoa" else "gtk2"} NO_HEADERS=0 BUILD_GLCANVAS=${if openglSupport then "1" else "0"} UNICODE=1 --prefix=$out
${python.interpreter} setup.py install WXPORT=${if stdenv.isDarwin then "osx_cocoa" else "gtk3"} NO_HEADERS=0 BUILD_GLCANVAS=${if openglSupport then "1" else "0"} UNICODE=1 --prefix=$out
wrapPythonPrograms
'';

Expand Down
4 changes: 2 additions & 2 deletions pkgs/games/rigsofrods/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ fetchFromGitHub, stdenv, wxGTK30, freeimage, cmake, zziplib, libGLU_combined, boost,
pkgconfig, libuuid, openal, ogre, ois, curl, gtk2, mygui, unzip,
pkgconfig, libuuid, openal, ogre, ois, curl, mygui, unzip,
angelscript, ogrepaged, mysocketw, libxcb
}:

Expand Down Expand Up @@ -27,7 +27,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ wxGTK30 freeimage cmake zziplib libGLU_combined boost
libuuid openal ogre ois curl gtk2 mygui unzip angelscript
libuuid openal ogre ois curl wxGTK30.gtk mygui unzip angelscript
ogrepaged mysocketw libxcb ];

meta = {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/text/poedit/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, autoconf, automake, libtool, gettext, pkgconfig, wxGTK30,
boost, icu, lucenepp, asciidoc, libxslt, xmlto, gtk2, gtkspell2, pugixml,
boost, icu, lucenepp, asciidoc, libxslt, xmlto, gtkspell3, pugixml,
nlohmann_json, hicolor-icon-theme, wrapGAppsHook }:

stdenv.mkDerivation rec {
Expand All @@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoconf automake asciidoc wrapGAppsHook
libxslt xmlto boost libtool pkgconfig ];

buildInputs = [ lucenepp nlohmann_json wxGTK30 icu pugixml gtk2 gtkspell2 hicolor-icon-theme ];
buildInputs = [ lucenepp nlohmann_json wxGTK30 icu pugixml wxGTK30.gtk gtkspell3 hicolor-icon-theme ];

propagatedBuildInputs = [ gettext ];

Expand Down
12 changes: 5 additions & 7 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2786,7 +2786,9 @@ in

dotnetfx40 = callPackage ../development/libraries/dotnetfx40 { };

dolphinEmu = callPackage ../misc/emulators/dolphin-emu { };
dolphinEmu = callPackage ../misc/emulators/dolphin-emu {
wxGTK30 = wxGTK30.override { withGtk2 = true; };
};
dolphinEmuMaster = qt5.callPackage ../misc/emulators/dolphin-emu/master.nix {
inherit (darwin.apple_sdk.frameworks) CoreBluetooth ForceFeedback IOKit OpenGL;
};
Expand All @@ -2796,11 +2798,7 @@ in
doom-bcc = callPackage ../games/zdoom/bcc-git.nix { };

slade = callPackage ../applications/misc/slade {
wxGTK = wxGTK30;
};

sladeUnstable = callPackage ../applications/misc/slade/git.nix {
wxGTK = wxGTK30;
wxGTK = wxGTK30.override { withWebKit = true; };
};

drive = callPackage ../applications/networking/drive { };
Expand Down Expand Up @@ -22927,6 +22925,7 @@ in
mygui = mygui.override {
withOgre = true;
};
wxGTK30 = wxGTK30.override { withGtk2 = true; };
};

riko4 = callPackage ../games/riko4 { };
Expand Down Expand Up @@ -24161,7 +24160,6 @@ in
gravit = callPackage ../applications/science/astronomy/gravit { };

golly = callPackage ../applications/science/misc/golly { wxGTK = wxGTK30; };
golly-beta = callPackage ../applications/science/misc/golly/beta.nix { wxGTK = wxGTK30; };

megam = callPackage ../applications/science/misc/megam { };

Expand Down
Loading