webkitgtk: depend on wayland-scanner
Currently wayland-scanner is defined to be wayland.bin, but we want to split wayland-scanner into a separate package. The previous explicit -DWAYLAND_SCANNER= is removed - the binary is in a separate bin output and it works out of the box just with wayland-scanner in nativeBuildInputs.
This commit is contained in:
committed by
Florian Klink
parent
e22928181e
commit
b46f93f04b
@@ -20,6 +20,7 @@
|
||||
, gtk3
|
||||
, wayland
|
||||
, wayland-protocols
|
||||
, wayland-scanner
|
||||
, libwebp
|
||||
, enchant2
|
||||
, xorg
|
||||
@@ -117,6 +118,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
gi-docgen
|
||||
glib # for gdbus-codegen
|
||||
unifdef
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
wayland-scanner
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
@@ -186,34 +189,35 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
libsoup
|
||||
];
|
||||
|
||||
cmakeFlags = let
|
||||
cmakeBool = x: if x then "ON" else "OFF";
|
||||
in [
|
||||
"-DENABLE_INTROSPECTION=ON"
|
||||
"-DPORT=GTK"
|
||||
"-DUSE_LIBHYPHEN=OFF"
|
||||
"-DUSE_SOUP2=${cmakeBool (lib.versions.major libsoup.version == "2")}"
|
||||
"-DUSE_LIBSECRET=${cmakeBool withLibsecret}"
|
||||
"-DENABLE_EXPERIMENTAL_FEATURES=${cmakeBool enableExperimental}"
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
# Have to be explicitly specified when cross.
|
||||
# https://github.com/WebKit/WebKit/commit/a84036c6d1d66d723f217a4c29eee76f2039a353
|
||||
"-DBWRAP_EXECUTABLE=${lib.getExe bubblewrap}"
|
||||
"-DDBUS_PROXY_EXECUTABLE=${lib.getExe xdg-dbus-proxy}"
|
||||
"-DWAYLAND_SCANNER=${buildPackages.wayland-scanner}/bin/wayland-scanner"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
"-DENABLE_GAMEPAD=OFF"
|
||||
"-DENABLE_GTKDOC=OFF"
|
||||
"-DENABLE_MINIBROWSER=OFF"
|
||||
"-DENABLE_QUARTZ_TARGET=ON"
|
||||
"-DENABLE_X11_TARGET=OFF"
|
||||
"-DUSE_APPLE_ICU=OFF"
|
||||
"-DUSE_OPENGL_OR_ES=OFF"
|
||||
] ++ lib.optionals (lib.versionOlder gtk3.version "4.0") [
|
||||
"-DUSE_GTK4=OFF"
|
||||
] ++ lib.optionals (!systemdSupport) [
|
||||
"-DENABLE_JOURNALD_LOG=OFF"
|
||||
];
|
||||
cmakeFlags =
|
||||
let
|
||||
cmakeBool = x: if x then "ON" else "OFF";
|
||||
in
|
||||
[
|
||||
"-DENABLE_INTROSPECTION=ON"
|
||||
"-DPORT=GTK"
|
||||
"-DUSE_LIBHYPHEN=OFF"
|
||||
"-DUSE_SOUP2=${cmakeBool (lib.versions.major libsoup.version == "2")}"
|
||||
"-DUSE_LIBSECRET=${cmakeBool withLibsecret}"
|
||||
"-DENABLE_EXPERIMENTAL_FEATURES=${cmakeBool enableExperimental}"
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
# Have to be explicitly specified when cross.
|
||||
# https://github.com/WebKit/WebKit/commit/a84036c6d1d66d723f217a4c29eee76f2039a353
|
||||
"-DBWRAP_EXECUTABLE=${lib.getExe bubblewrap}"
|
||||
"-DDBUS_PROXY_EXECUTABLE=${lib.getExe xdg-dbus-proxy}"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
"-DENABLE_GAMEPAD=OFF"
|
||||
"-DENABLE_GTKDOC=OFF"
|
||||
"-DENABLE_MINIBROWSER=OFF"
|
||||
"-DENABLE_QUARTZ_TARGET=ON"
|
||||
"-DENABLE_X11_TARGET=OFF"
|
||||
"-DUSE_APPLE_ICU=OFF"
|
||||
"-DUSE_OPENGL_OR_ES=OFF"
|
||||
] ++ lib.optionals (lib.versionOlder gtk3.version "4.0") [
|
||||
"-DUSE_GTK4=OFF"
|
||||
] ++ lib.optionals (!systemdSupport) [
|
||||
"-DENABLE_JOURNALD_LOG=OFF"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
|
||||
Reference in New Issue
Block a user