Skip to content

Commit

Permalink
Merge pull request #267550 from Artturin/valaoffset
Browse files Browse the repository at this point in the history
vala: look for files in `targetOffset`
  • Loading branch information
Artturin authored Dec 1, 2023
2 parents b9dbec0 + 18951ce commit fefe628
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 18 deletions.
2 changes: 0 additions & 2 deletions pkgs/desktops/gnome/apps/gnome-clocks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
, itstool
, desktop-file-utils
, vala
, gobject-introspection
, libxml2
, gtk4
, glib
Expand Down Expand Up @@ -43,7 +42,6 @@ stdenv.mkDerivation rec {
wrapGAppsHook4
desktop-file-utils
libxml2
gobject-introspection # for finding vapi files
];

buildInputs = [
Expand Down
4 changes: 0 additions & 4 deletions pkgs/desktops/gnome/apps/seahorse/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ stdenv.mkDerivation rec {
gnupg
desktop-file-utils
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 Down
4 changes: 0 additions & 4 deletions pkgs/desktops/gnome/core/baobab/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ stdenv.mkDerivation rec {
pkg-config
vala
wrapGAppsHook4
# Prevents “error: Package `libadwaita-1' not found in specified Vala API
# directories or GObject-Introspection GIR directories” with strictDeps,
# even though it should only be a runtime dependency.
libadwaita
];

buildInputs = [
Expand Down
2 changes: 0 additions & 2 deletions pkgs/desktops/gnome/core/gnome-calculator/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
, glib
, gtksourceview5
, wrapGAppsHook4
, gobject-introspection
, gnome
, mpfr
, gmp
Expand Down Expand Up @@ -40,7 +39,6 @@ stdenv.mkDerivation rec {
gettext
itstool
wrapGAppsHook4
gobject-introspection # for finding vapi files
];

buildInputs = [
Expand Down
5 changes: 2 additions & 3 deletions pkgs/desktops/gnome/games/gnome-mines/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, meson, ninja, vala, gobject-introspection, pkg-config, gnome, gtk3, wrapGAppsHook
{ lib, stdenv, fetchurl, meson, ninja, vala, pkg-config, gnome, gtk3, wrapGAppsHook
, librsvg, gettext, itstool, python3, libxml2, libgnome-games-support, libgee, desktop-file-utils }:

stdenv.mkDerivation rec {
Expand All @@ -10,9 +10,8 @@ stdenv.mkDerivation rec {
sha256 = "NQLps/ccs7LnEcDmAZGH/rzCvKh349RW3KtwD3vjEnI=";
};

# gobject-introspection for finding vapi files
nativeBuildInputs = [
meson ninja vala gobject-introspection pkg-config gettext itstool python3
meson ninja vala pkg-config gettext itstool python3
libxml2 wrapGAppsHook desktop-file-utils
];
buildInputs = [ gtk3 librsvg gnome.adwaita-icon-theme libgnome-games-support libgee ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/vala/setup-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ make_vala_find_vapi_files() {
fi
}

addEnvHooks "$hostOffset" make_vala_find_vapi_files
addEnvHooks "$targetOffset" make_vala_find_vapi_files

disable_incompabile_pointer_conversion_warning() {
# Work around incompatible function pointer conversion errors with clang 16
Expand Down
2 changes: 0 additions & 2 deletions pkgs/development/libraries/libgnome-games-support/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
, fetchurl
, pkg-config
, glib
, gobject-introspection
, gtk3
, libgee
, gettext
Expand All @@ -24,7 +23,6 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [
gettext
gobject-introspection
meson
ninja
pkg-config
Expand Down

0 comments on commit fefe628

Please sign in to comment.