Skip to content
Merged
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
5 changes: 4 additions & 1 deletion pkgs/applications/networking/browsers/netsurf/libnsgif.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, pkg-config
{ lib, stdenv, fetchurl, pkg-config, buildPackages
, buildsystem
}:

Expand All @@ -12,12 +12,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-nq6lNM1wtTxar0UxeulXcBaFprSojb407Sb0+q6Hmks=";
};

depsBuildBuild = [ buildPackages.stdenv.cc ];

nativeBuildInputs = [ pkg-config ];
buildInputs = [ buildsystem ];

makeFlags = [
"PREFIX=$(out)"
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
"BUILD_CC=$(CC_FOR_BUILD)"
];

meta = with lib; {
Expand Down
8 changes: 8 additions & 0 deletions pkgs/desktops/gnome/apps/gnome-characters/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchurl
, fetchpatch
, meson
, ninja
, pkg-config
Expand Down Expand Up @@ -29,6 +30,13 @@ stdenv.mkDerivation rec {
sha256 = "XaD/uBb4prRPMDdEyoJ6NAgBGMHJONjXmvF7f+Z5gPg=";
};

patches = [
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gnome-characters/-/commit/3e28a6ad668e2239b14f2e05bc477ec1bfb210ba.patch";
sha256 = "sha256-2N4eewknhOXBABs6BPA5/YuqZMT8dyXW857iamrrtuA=";
})
];

nativeBuildInputs = [
gettext
gobject-introspection
Expand Down
3 changes: 3 additions & 0 deletions pkgs/desktops/gnome/apps/gnome-clocks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ stdenv.mkDerivation rec {
desktop-file-utils
libxml2
gobject-introspection # for finding vapi files
# error: Package `...' not found in specified Vala API directories or GObject-Introspection GIR directories
# TODO: the vala setuphook should look for vala filess in targetOffset instead of hostOffset
gsound
Comment on lines +48 to +50
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then it should be fixed there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah im going to do it in a separate pr

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

];

buildInputs = [
Expand Down
15 changes: 15 additions & 0 deletions pkgs/desktops/gnome/apps/gnome-logs/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ stdenv
, lib
, fetchurl
, fetchpatch
, meson
, ninja
, pkg-config
Expand Down Expand Up @@ -29,6 +30,19 @@ stdenv.mkDerivation rec {
sha256 = "TV5FFp1r9DkC16npoHk8kW65LaumuoWzXI629nLNq9c=";
};

patches = [
# meson: Remove redundant check for glib-mkenums
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gnome-logs/-/commit/01386ce9a69652a00bdb163e569b51150ca8903e.diff";
sha256 = "sha256-tJJEai4Jw8aVcyhsFTYILiUV1xhsysX/rleeLP13DVM=";
})
# meson: remove redundant check for pkg-config
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gnome-logs/-/commit/ad350729a8b81f2c8eb2122de0956bb2199b48da.patch";
sha256 = "sha256-5qGYyKM+B9XNZKytWH8K4QfSuBf7wpaPCWT6YIO5FGY=";
})
];

nativeBuildInputs = [
python3
meson
Expand All @@ -41,6 +55,7 @@ stdenv.mkDerivation rec {
libxslt
docbook_xsl
docbook_xml_dtd_43
glib
];

buildInputs = [
Expand Down
3 changes: 2 additions & 1 deletion pkgs/desktops/gnome/apps/gnome-weather/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ stdenv.mkDerivation rec {
ninja
wrapGAppsHook
python3
gobject-introspection
gjs
];

buildInputs = [
gtk4
libadwaita
gjs
gobject-introspection
libgweather
gnome.adwaita-icon-theme
geoclue2
Expand Down
9 changes: 7 additions & 2 deletions pkgs/desktops/gnome/apps/seahorse/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ stdenv.mkDerivation rec {
itstool
wrapGAppsHook
python3
openssh
gnupg
gcr
# error: Package `...' not found in specified Vala API directories or GObject-Introspection GIR directories
# TODO: the vala setuphook should look for vala filess in targetOffset instead of hostOffset
libhandy
libsecret
];

buildInputs = [
Expand All @@ -50,13 +57,11 @@ stdenv.mkDerivation rec {
glib-networking
gcr
gsettings-desktop-schemas
gnupg
gpgme
libsecret
avahi
libsoup
p11-kit
openssh
openldap
libpwquality
libhandy
Expand Down
2 changes: 1 addition & 1 deletion pkgs/desktops/gnome/core/gdm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ stdenv.mkDerivation rec {
pkg-config
python3
rsync
gobject-introspection
];

buildInputs = [
accountsservice
audit
glib
gobject-introspection
gtk3
keyutils
libX11
Expand Down
3 changes: 3 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,6 +50,8 @@ stdenv.mkDerivation rec {
docbook-xsl-nons
docbook_xml_dtd_43
python3
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];

buildInputs = [
Expand Down
1 change: 1 addition & 0 deletions pkgs/desktops/gnome/core/gnome-font-viewer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ stdenv.mkDerivation rec {
gettext
wrapGAppsHook4
libxml2
glib
];

buildInputs = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
# Fixup adapted from export-zips.sh in the source.

extensiondir=$out/share/gnome-shell/extensions
schemadir=${glib.makeSchemaPath "$out" "${pname}-${version}"}
schemadir=${glib.makeSchemaPath "$out" "$name"}

glib-compile-schemas $schemadir

Expand Down
1 change: 1 addition & 0 deletions pkgs/desktops/gnome/core/gnome-system-monitor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ stdenv.mkDerivation rec {
wrapGAppsHook
meson
ninja
glib
];

buildInputs = [
Expand Down
2 changes: 1 addition & 1 deletion pkgs/desktops/gnome/core/gnome-themes-extra/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ in stdenv.mkDerivation rec {
};
};

nativeBuildInputs = [ pkg-config intltool ];
nativeBuildInputs = [ pkg-config intltool gtk3 ];
buildInputs = [ gtk3 librsvg pango atk gtk2 gdk-pixbuf ];
propagatedBuildInputs = [ gnome.adwaita-icon-theme hicolor-icon-theme ];

Expand Down
16 changes: 16 additions & 0 deletions pkgs/desktops/gnome/core/gnome-tour/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
, libadwaita
, librsvg
, rustc
, rust
, writeText
, cargo
}:

Expand All @@ -31,6 +33,10 @@ stdenv.mkDerivation rec {

cargoVendorDir = "vendor";

depsBuildBuild = [
pkg-config
];

nativeBuildInputs = [
appstream-glib
cargo
Expand All @@ -54,6 +60,16 @@ stdenv.mkDerivation rec {
librsvg
];

mesonFlags =
let
# ERROR: 'rust' compiler binary not defined in cross or native file
crossFile = writeText "cross-file.conf" ''
[binaries]
rust = [ 'rustc', '--target', '${rust.toRustTargetSpec stdenv.hostPlatform}' ]
'';
in
lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ "--cross-file=${crossFile}" ];

passthru = {
updateScript = gnome.updateScript {
packageName = pname;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/clutter/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];

buildInputs = [ gtk3 ];
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config gobject-introspection ];
propagatedBuildInputs =
[ libX11 libGL libGLU libXext libXfixes libXdamage libXcomposite libXi cogl pango
atk json-glib gobject-introspection libxcb libinput libgudev libxkbcommon
Expand Down
4 changes: 3 additions & 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 All @@ -41,6 +41,8 @@ stdenv.mkDerivation rec {
] ++ lib.optional gstreamerSupport "--enable-cogl-gst"
++ lib.optionals (!stdenv.isDarwin) [ "--enable-gles1" "--enable-gles2" ];

# TODO: this shouldn't propagate so many things
# especially not gobject-introspection
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

propagatedBuildInputs = with xorg; [
glib gdk-pixbuf gobject-introspection wayland mesa
libGL libXrandr libXfixes libXcomposite libXdamage
Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/libraries/gcr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ stdenv.mkDerivation rec {
wrapGAppsHook
vala
shared-mime-info
gnupg
openssh
];

buildInputs = [
gnupg
libgcrypt
libtasn1
pango
Expand Down
3 changes: 3 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,6 +54,8 @@ stdenv.mkDerivation rec {
gtk-doc
docbook-xsl-nons
gobject-introspection
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];

buildInputs = [
Expand Down
7 changes: 4 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,13 @@ 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 = [
glib
# Python binding overrides
python3
python3.pkgs.pygobject3
];

propagatedBuildInputs = [
Expand Down
7 changes: 5 additions & 2 deletions 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,15 +56,17 @@ 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 = [
gobject-introspection
cairo
readline
libsysprof-capture
spidermonkey_91
dbus # for dbus-run-session
];

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

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

passthru = {
updateScript = gnome.updateScript {
Expand Down
Loading