Merge pull request #153225 from NixOS/libportal
Fix builds broken by libportal update
This commit is contained in:
commit
009de75a84
@ -5,6 +5,7 @@
|
||||
, appstream-glib
|
||||
, desktop-file-utils
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, flatpak
|
||||
, gnome
|
||||
, libgit2-glib
|
||||
@ -18,7 +19,7 @@
|
||||
, jsonrpc-glib
|
||||
, libdazzle
|
||||
, libpeas
|
||||
, libportal
|
||||
, libportal-gtk3
|
||||
, libxml2
|
||||
, meson
|
||||
, ninja
|
||||
@ -48,6 +49,15 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "4iUPyOnp8gAsRS5ZUNgmhXNNPESAs1Fnq1CKyHAlCeE=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build with latest libportal
|
||||
# https://gitlab.gnome.org/GNOME/gnome-builder/-/merge_requests/486
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/gnome-builder/-/commit/b3bfa0df53a3749c3b73cb6c4bad5cab3fa549a1.patch";
|
||||
sha256 = "B/uCcYavFvOAPhLHZ4MRNENDd6VytILiGYwDZRUSxTE=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
appstream-glib
|
||||
desktop-file-utils
|
||||
@ -69,7 +79,7 @@ stdenv.mkDerivation rec {
|
||||
glade
|
||||
libgit2-glib
|
||||
libpeas
|
||||
libportal
|
||||
libportal-gtk3
|
||||
vte
|
||||
gspell
|
||||
gtk3
|
||||
|
@ -6,7 +6,7 @@
|
||||
, pkg-config
|
||||
, libxml2
|
||||
, gtk3
|
||||
, libportal
|
||||
, libportal-gtk3
|
||||
, wrapGAppsHook
|
||||
}:
|
||||
|
||||
@ -33,12 +33,16 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
gtk3
|
||||
libportal
|
||||
libportal-gtk3
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
chmod +x meson_install.sh # patchShebangs requires executable file
|
||||
patchShebangs meson_install.sh
|
||||
|
||||
# https://gitlab.gnome.org/World/gcolor3/merge_requests/151
|
||||
substituteInPlace meson.build --replace "dependency(${"\n"} 'libportal'" "dependency(${"\n"} 'libportal-gtk3'"
|
||||
substituteInPlace src/gcolor3-color-selection.c --replace "libportal/portal-gtk3.h" "libportal-gtk3/portal-gtk3.h"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, meson
|
||||
, ninja
|
||||
, gettext
|
||||
@ -8,7 +9,7 @@
|
||||
, libxml2
|
||||
, libjpeg
|
||||
, libpeas
|
||||
, libportal
|
||||
, libportal-gtk3
|
||||
, gnome
|
||||
, gtk3
|
||||
, glib
|
||||
@ -35,6 +36,15 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-huG5ujnaz3QiavpFermDtBJTuJ9he/VBOcrQiS0C2Kk=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build with latest libportal
|
||||
# https://gitlab.gnome.org/GNOME/eog/-/merge_requests/115
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/eog/-/commit/a06e6325907e136678b0bbe7058c25d688034afd.patch";
|
||||
sha256 = "ttcsfHubfmIbxA51YLnxXDagLLNutXYmoQyMQ4sHRak=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
@ -49,7 +59,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
libjpeg
|
||||
libportal
|
||||
libportal-gtk3
|
||||
gtk3
|
||||
gdk-pixbuf
|
||||
glib
|
||||
|
@ -12,7 +12,7 @@
|
||||
, wrapGAppsHook
|
||||
, gnome
|
||||
, pantheon
|
||||
, libportal
|
||||
, libportal-gtk3
|
||||
, libxml2
|
||||
, libxslt
|
||||
, itstool
|
||||
@ -65,6 +65,13 @@ stdenv.mkDerivation rec {
|
||||
url = "https://raw.githubusercontent.com/elementary/browser/cc17559a7ac6effe593712b4f3d0bbefde6e3b62/navigation-buttons.patch";
|
||||
sha256 = "sha256-G1/JUjn/8DyO9sgL/5Kq205KbTOs4EMi4Vf3cJ8FHXU=";
|
||||
})
|
||||
] ++ [
|
||||
# Fix build with latest libportal
|
||||
# https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1051
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/epiphany/-/commit/84474398f6e59266b73170838219aa896729ce93.patch";
|
||||
sha256 = "SeiLTo3FcOxuml5sJX9GqyGdyGf1jm1A76SOI0JJvoo=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -100,7 +107,7 @@ stdenv.mkDerivation rec {
|
||||
json-glib
|
||||
libdazzle
|
||||
libhandy
|
||||
libportal
|
||||
libportal-gtk3
|
||||
libnotify
|
||||
libarchive
|
||||
libsecret
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
@ -10,7 +11,7 @@
|
||||
, wrapGAppsHook
|
||||
, gtk3
|
||||
, libhandy
|
||||
, libportal
|
||||
, libportal-gtk3
|
||||
, gnome
|
||||
, gnome-autoar
|
||||
, glib-networking
|
||||
@ -52,6 +53,17 @@ stdenv.mkDerivation rec {
|
||||
src = ./fix-paths.patch;
|
||||
inherit tracker;
|
||||
})
|
||||
|
||||
# Fix build with latest libportal
|
||||
# https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/749
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/nautilus/-/commit/55cfd66ccca391fc144f5863ff6bfc1f3b137e2d.patch";
|
||||
sha256 = "xSb9l7xxEYpAwmdmeWT/t7Z9Ck3DPtsODzbReQW/Q70=";
|
||||
excludes = [
|
||||
"build-aux/flatpak/org.gnome.Nautilus.json"
|
||||
"build-aux/flatpak/org.gnome.Nautilus.yml"
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -76,7 +88,7 @@ stdenv.mkDerivation rec {
|
||||
gst_all_1.gst-plugins-base
|
||||
gtk3
|
||||
libhandy
|
||||
libportal
|
||||
libportal-gtk3
|
||||
libexif
|
||||
libnotify
|
||||
libseccomp
|
||||
|
Loading…
Reference in New Issue
Block a user