defaultCrateOverrides: fix some gtk dependencies

- gobject-sys and gio-sys need pkg-config
 - add gtkx11-sys
 - add javascriptcore-rs-sys
 - add soup3-sys
 - add webkit2gtk-sys
This commit is contained in:
Florian Klink 2024-07-05 21:54:07 +03:00
parent 35a90c3f3d
commit 0c00ad14ac

View File

@ -1,46 +1,48 @@
{ lib { lib
, stdenv , stdenv
, atk
, pkg-config
, curl
, darwin
, libgit2
, gtk3
, libssh2
, openssl
, sqlite
, zlib
, dbus
, dbus-glib
, gdk-pixbuf
, cairo
, python3
, libsodium
, postgresql
, gmp
, gobject-introspection
, foundationdb
, capnproto
, nettle
, gtk4
, clang
, llvmPackages
, linux-pam
, pango
, cmake
, glib
, freetype
, fontconfig
, rdkafka
, udev
, libevdev
, alsa-lib , alsa-lib
, graphene , atk
, protobuf
, autoconf , autoconf
, automake , automake
, cairo
, capnproto
, clang
, cmake
, curl
, darwin
, dbus
, dbus-glib
, fontconfig
, foundationdb
, freetype
, gdk-pixbuf
, glib
, gmp
, gobject-introspection
, graphene
, gtk3
, gtk4
, libevdev
, libgit2
, libsodium
, libsoup_3
, libssh2
, libtool , libtool
, linux-pam
, llvmPackages
, nettle
, openssl
, pango
, pkg-config
, postgresql
, protobuf
, python3
, rdkafka
, seatd # =libseat , seatd # =libseat
, sqlite
, udev
, webkitgtk_4_1
, zlib
, ... , ...
}: }:
@ -93,7 +95,10 @@ in
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
] ++ lib.optionals (stdenv.buildPlatform.config != stdenv.hostPlatform.config) [ ] ++ lib.optionals (stdenv.buildPlatform.config != stdenv.hostPlatform.config) [
python3 autoconf automake libtool python3
autoconf
automake
libtool
]; ];
buildInputs = [ libevdev ]; buildInputs = [ libevdev ];
@ -132,21 +137,34 @@ in
}; };
gobject-sys = attrs: { gobject-sys = attrs: {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dbus-glib ]; buildInputs = [ dbus-glib ];
}; };
gio-sys = attrs: { gio-sys = attrs: {
buildInputs = [ dbus-glib ]; nativeBuildInputs = [ pkg-config ];
};
gdk-pixbuf-sys = attrs: {
buildInputs = [ dbus-glib ]; buildInputs = [ dbus-glib ];
}; };
gdk-pixbuf = attrs: { gdk-pixbuf = attrs: {
buildInputs = [ dbus-glib gdk-pixbuf ];
};
gdk-pixbuf-sys = attrs: {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gdk-pixbuf ]; buildInputs = [ gdk-pixbuf ];
}; };
gdk-sys = attrs: {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk3 ]; # libgdk-3
};
gdkx11-sys = attrs: {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk3 ];
};
gtk-sys = attrs: { gtk-sys = attrs: {
buildInputs = [ gtk3 ]; buildInputs = [ gtk3 ];
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
@ -203,6 +221,11 @@ in
buildInputs = [ graphene ]; buildInputs = [ graphene ];
}; };
javascriptcore-rs-sys = attrs: {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ webkitgtk_4_1 ];
};
nettle-sys = attrs: { nettle-sys = attrs: {
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ nettle clang ]; buildInputs = [ nettle clang ];
@ -302,6 +325,11 @@ in
buildInputs = [ freetype fontconfig ]; buildInputs = [ freetype fontconfig ];
}; };
soup3-sys = attrs: {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libsoup_3 ];
};
thrussh-libsodium = attrs: { thrussh-libsodium = attrs: {
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ libsodium ]; buildInputs = [ libsodium ];
@ -311,6 +339,11 @@ in
nativeBuildInputs = [ protobuf ]; nativeBuildInputs = [ protobuf ];
}; };
webkit2gtk-sys = attrs: {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ webkitgtk_4_1 ];
};
xcb = attrs: { xcb = attrs: {
buildInputs = [ python3 ]; buildInputs = [ python3 ];
}; };