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
3 changes: 2 additions & 1 deletion pkgs/applications/networking/remote/freerdp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
, libxkbcommon
, libxkbfile
, wayland
, wayland-scanner
, gstreamer
, gst-plugins-base
, gst-plugins-good
Expand Down Expand Up @@ -115,7 +116,7 @@ stdenv.mkDerivation rec {
zlib
] ++ lib.optional stdenv.isLinux systemd;

nativeBuildInputs = [ cmake pkg-config ];
nativeBuildInputs = [ cmake pkg-config wayland-scanner ];

doCheck = true;

Expand Down
4 changes: 4 additions & 0 deletions pkgs/desktops/gnome/core/gnome-bluetooth/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, fetchurl
, gnome
, meson
, mesonEmulatorHook
, ninja
, pkg-config
, gtk4
Expand Down Expand Up @@ -49,9 +50,12 @@ stdenv.mkDerivation rec {
docbook-xsl-nons
docbook_xml_dtd_43
python3
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];

buildInputs = [
gobject-introspection
glib
gtk4
libadwaita
Expand Down
2 changes: 1 addition & 1 deletion pkgs/desktops/gnome/core/gnome-font-viewer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ stdenv.mkDerivation rec {
gettext
wrapGAppsHook4
libxml2
glib
];

buildInputs = [
gtk4
glib
gnome-desktop
harfbuzz
libadwaita
Expand Down
1 change: 1 addition & 0 deletions pkgs/desktops/gnome/misc/gnome-autoar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ stdenv.mkDerivation rec {
];

buildInputs = [
gobject-introspection
gtk3
];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/cogl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ stdenv.mkDerivation rec {

outputs = [ "out" "dev" ];

nativeBuildInputs = [ pkg-config libintl automake autoconf ];
nativeBuildInputs = [ pkg-config libintl automake autoconf gobject-introspection ];

configureFlags = [
"--enable-introspection"
Expand Down
5 changes: 3 additions & 2 deletions pkgs/development/libraries/gcr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,16 @@ stdenv.mkDerivation rec {
wrapGAppsHook
vala
shared-mime-info
gnupg
openssh
];

buildInputs = [
gnupg
gobject-introspection
libgcrypt
libtasn1
pango
libsecret
openssh
systemd
];

Expand Down
4 changes: 4 additions & 0 deletions pkgs/development/libraries/geocode-glib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, fetchurl
, fetchpatch
, meson
, mesonEmulatorHook
, ninja
, pkg-config
, gettext
Expand Down Expand Up @@ -53,9 +54,12 @@ stdenv.mkDerivation rec {
gtk-doc
docbook-xsl-nons
gobject-introspection
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];

buildInputs = [
gobject-introspection
glib
libsoup
json-glib
Expand Down
8 changes: 5 additions & 3 deletions pkgs/development/libraries/gexiv2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, lib
, fetchurl
, meson
, mesonEmulatorHook
, ninja
, pkg-config
, exiv2
Expand Down Expand Up @@ -35,13 +36,14 @@ stdenv.mkDerivation rec {
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_43
(python3.pythonForBuild.withPackages (ps: [ ps.pygobject3 ]))
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];

buildInputs = [
gobject-introspection
glib
# Python binding overrides
python3
python3.pkgs.pygobject3
];

propagatedBuildInputs = [
Expand Down
6 changes: 5 additions & 1 deletion pkgs/development/libraries/gjs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, lib
, stdenv
, meson
, mesonEmulatorHook
, ninja
, pkg-config
, gnome
Expand Down Expand Up @@ -55,6 +56,10 @@ in stdenv.mkDerivation rec {
makeWrapper
which # for locale detection
libxml2 # for xml-stripblanks
dbus # for dbus-run-session
gobject-introspection
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];

buildInputs = [
Expand All @@ -63,7 +68,6 @@ in stdenv.mkDerivation rec {
readline
libsysprof-capture
spidermonkey_91
dbus # for dbus-run-session
];

checkInputs = [
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/libraries/gmime/3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ stdenv.mkDerivation rec {
configureFlags = [
"--enable-introspection=yes"
"--enable-vala=yes"
"--with-libiconv"
#"ac_cv_have_iconv_detect_h=yes"
];

postPatch = ''
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/libraries/gnome-desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ stdenv.mkDerivation rec {
bubblewrap
wayland
libseccomp
gobject-introspection
systemd
];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/gnome-menus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
"INTROSPECTION_TYPELIBDIR=${placeholder "out"}/lib/girepository-1.0"
];

nativeBuildInputs = [ pkg-config gettext ];
nativeBuildInputs = [ pkg-config gettext gobject-introspection ];
buildInputs = [ glib gobject-introspection ];

passthru = {
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/libraries/gom/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ stdenv.mkDerivation rec {
];

buildInputs = [
gobject-introspection
gdk-pixbuf
glib
sqlite
Expand Down
14 changes: 9 additions & 5 deletions pkgs/development/libraries/graphene/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
, nix-update-script
, pkg-config
, meson
, mesonEmulatorHook
, ninja
, python3
, mutest
Expand All @@ -21,8 +22,7 @@ stdenv.mkDerivation rec {
pname = "graphene";
version = "1.10.8";

outputs = [ "out" ]
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" "installedTests" ];
outputs = [ "out" "dev" "devdoc" "installedTests" ];

src = fetchFromGitHub {
owner = "ebassi";
Expand Down Expand Up @@ -59,9 +59,12 @@ stdenv.mkDerivation rec {
gobject-introspection
python3
makeWrapper
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];

buildInputs = [
gobject-introspection
glib
];

Expand All @@ -70,17 +73,18 @@ stdenv.mkDerivation rec {
];

mesonFlags = [
"-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
"-Dintrospection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}"
"-Dgtk_doc=true"
"-Dintrospection=enabled"
"-Dinstalled_test_datadir=${placeholder "installedTests"}/share"
"-Dinstalled_test_bindir=${placeholder "installedTests"}/libexec"
];

doCheck = true;

postPatch = ''
substituteInPlace tests/meson.build \
--replace 'and not meson.is_cross_build()' ""
patchShebangs tests/gen-installed-test.py
'' + lib.optionalString (stdenv.buildPlatform == stdenv.hostPlatform) ''
PATH=${python3.withPackages (pp: [ pp.pygobject3 pp.tappy ])}/bin:$PATH patchShebangs tests/introspection.py
'';

Expand Down
4 changes: 4 additions & 0 deletions pkgs/development/libraries/grilo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, lib
, fetchurl
, meson
, mesonEmulatorHook
, ninja
, pkg-config
, gettext
Expand Down Expand Up @@ -47,9 +48,12 @@ stdenv.mkDerivation rec {
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_43
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];

buildInputs = [
gobject-introspection
glib
liboauth
gtk3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ stdenv.mkDerivation rec {
python3
gobject-introspection
];

mesonFlags = [
"-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
];
buildInputs = [ gobject-introspection ];

postPatch = ''
chmod +x build-aux/meson/post-install.py
Expand Down
9 changes: 8 additions & 1 deletion pkgs/development/libraries/gspell/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ lib, stdenv
, buildPackages
, fetchurl
, pkg-config
, libxml2
Expand Down Expand Up @@ -38,10 +39,11 @@ stdenv.mkDerivation rec {
libxml2
autoreconfHook
gtk-doc
glib
];

buildInputs = [
glib
gobject-introspection
gtk3
icu
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
Expand All @@ -53,6 +55,11 @@ stdenv.mkDerivation rec {
enchant2
];

configureFlags = [
"GLIB_COMPILE_RESOURCES=${lib.getDev buildPackages.glib}/bin/glib-compile-resources"
"GLIB_MKENUMS=${lib.getDev buildPackages.glib}/bin/glib-mkenums"
];

passthru = {
updateScript = gnome.updateScript {
packageName = pname;
Expand Down
15 changes: 15 additions & 0 deletions pkgs/development/libraries/gtk/4.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
, vulkan-headers
, wayland
, wayland-protocols
, wayland-scanner
, xineramaSupport ? stdenv.isLinux
, cupsSupport ? stdenv.isLinux
, cups
Expand Down Expand Up @@ -77,6 +78,10 @@ stdenv.mkDerivation rec {
sha256 = "e7/k0TVp98KX7UmDSscmPjGLe/EC0ycctGbVlx9ZrnA=";
};

depsBuildBuild = [
pkg-config
];

nativeBuildInputs = [
gettext
gobject-introspection
Expand All @@ -88,9 +93,11 @@ stdenv.mkDerivation rec {
sassc
gi-docgen
libxml2 # for xmllint
wayland-scanner
] ++ setupHooks;

buildInputs = [
gobject-introspection
libxkbcommon
libpng
libtiff
Expand Down Expand Up @@ -183,6 +190,14 @@ stdenv.mkDerivation rec {

chmod +x ''${files[@]}
patchShebangs ''${files[@]}

'' +
# Run-time dependency gi-docgen found: NO (tried pkgconfig and cmake)
# it should be a build-time dep for build
# TODO: send upstream
''
substituteInPlace meson.build \
--replace "'gi-docgen', ver" "'gi-docgen', native:true, ver"
'';

preInstall = ''
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/libraries/gtksourceview/4.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ stdenv.mkDerivation rec {
];

buildInputs = [
gobject-introspection
atk
cairo
glib
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/libraries/gtksourceview/5.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ stdenv.mkDerivation rec {
];

buildInputs = [
gobject-introspection
glib
pcre2
pango
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/libraries/gupnp-dlna/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ stdenv.mkDerivation rec {
];

buildInputs = [
gobject-introspection
libxml2
gst_all_1.gst-plugins-base
];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/gusb/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}:

let
pythonEnv = python3.withPackages(ps: with ps; [
pythonEnv = python3.pythonForBuild.withPackages(ps: with ps; [
setuptools
]);
in
Expand All @@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
gtk-doc docbook_xsl docbook_xml_dtd_412 docbook_xml_dtd_44
gobject-introspection vala
];
buildInputs = [ systemd glib ];
buildInputs = [ systemd glib gobject-introspection ];

propagatedBuildInputs = [ libusb1 ];

Expand Down
Loading