mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-27 14:34:33 +00:00
Merge pull request #175059 from bobby285271/pantheon
pantheon.elementary-feedback: 6.1.0 -> 6.1.1
This commit is contained in:
commit
958bf609b7
@ -1,7 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, nix-update-script
|
, nix-update-script
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, meson
|
, meson
|
||||||
@ -13,33 +12,30 @@
|
|||||||
, granite
|
, granite
|
||||||
, libgee
|
, libgee
|
||||||
, libhandy
|
, libhandy
|
||||||
, gettext
|
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, appstream
|
, appstream
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "elementary-feedback";
|
pname = "elementary-feedback";
|
||||||
version = "6.1.0";
|
version = "6.1.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "elementary";
|
owner = "elementary";
|
||||||
repo = "feedback";
|
repo = "feedback";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "02wydbpa5qaa4xmmh4m7rbj4djbrn2i44zjakj5i6mzwjlj6sv5n";
|
sha256 = "sha256-YLYHaFQAAeSt25xHF7xDJWhw+rbH9SpzoRoXaYP42jg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Upstream code not respecting our localedir
|
# The standard location to the metadata pool where metadata
|
||||||
# https://github.com/elementary/feedback/pull/48
|
# will be read from is likely hardcoded as /usr/share/metainfo
|
||||||
(fetchpatch {
|
# https://github.com/ximion/appstream/blob/v0.15.2/src/as-pool.c#L117
|
||||||
url = "https://github.com/elementary/feedback/commit/080005153977a86d10099eff6a5b3e68f7b12847.patch";
|
# https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#spec-component-location
|
||||||
sha256 = "01710i90qsaqsrjs92ahwwj198bdrrif6mnw29l9har2rncfkfk2";
|
./fix-metadata-path.patch
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
gettext
|
|
||||||
meson
|
meson
|
||||||
ninja
|
ninja
|
||||||
pkg-config
|
pkg-config
|
||||||
|
@ -0,0 +1,17 @@
|
|||||||
|
diff --git a/src/MainWindow.vala b/src/MainWindow.vala
|
||||||
|
index 6fee9d3..b0eb28c 100644
|
||||||
|
--- a/src/MainWindow.vala
|
||||||
|
+++ b/src/MainWindow.vala
|
||||||
|
@@ -89,6 +89,12 @@ public class Feedback.MainWindow : Gtk.ApplicationWindow {
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
+#if HAS_APPSTREAM_0_15
|
||||||
|
+ appstream_pool.add_extra_data_location ("/run/current-system/sw/share/metainfo/", AppStream.FormatStyle.METAINFO);
|
||||||
|
+#else
|
||||||
|
+ appstream_pool.add_metadata_location ("/run/current-system/sw/share/metainfo/");
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
// flatpak's appstream files exists only inside they sandbox
|
||||||
|
unowned var appdata_dir = "/var/lib/flatpak/app/%s/current/active/files/share/appdata";
|
||||||
|
foreach (var app in app_entries) {
|
Loading…
Reference in New Issue
Block a user