1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

arduino: use gtk3

This commit is contained in:
Arnout Engelen 2020-12-24 14:11:28 +01:00
parent e9158eca70
commit 022d7207fa
No known key found for this signature in database
GPG key ID: 061107B0F74A6DAA

View file

@ -11,7 +11,8 @@
, ncurses
, readline
, withGui ? false
, gtk2 ? null
, gtk3 ? null
, wrapGAppsHook
, withTeensyduino ? false
/* Packages needed for Teensyduino */
, upx
@ -29,7 +30,7 @@
, udev
}:
assert withGui -> gtk2 != null;
assert withGui -> gtk3 != null && wrapGAppsHook != null;
assert withTeensyduino -> withGui;
let
externalDownloads = import ./downloads.nix {
@ -55,7 +56,7 @@ let
gcc.cc.lib
gdk-pixbuf
glib
gtk2
gtk3
libpng12
libusb-compat-0_1
pango
@ -111,6 +112,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ wrapGAppsHook ];
buildInputs = [
jdk
ant
@ -149,7 +151,7 @@ stdenv.mkDerivation rec {
# This will be patched into `arduino` wrapper script
# Java loads gtk dynamically, so we need to provide it using LD_LIBRARY_PATH
dynamicLibraryPath = lib.makeLibraryPath [ gtk2 ];
dynamicLibraryPath = lib.makeLibraryPath [ gtk3 ];
javaPath = lib.makeBinPath [ jdk ];
# Everything else will be patched into rpath