2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, python3
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, granite
|
|
|
|
, libgee
|
2021-07-16 19:40:57 +00:00
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
2021-07-16 19:40:57 +00:00
|
|
|
, appstream
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elementary-feedback";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "7.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
2022-01-26 04:04:25 +00:00
|
|
|
repo = "feedback";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-QvqyaI9szZuYuE3D6o4zjr5J6mvEzNHqTBWii+gjyMc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
patches = [
|
2022-06-16 17:23:12 +00:00
|
|
|
# The standard location to the metadata pool where metadata
|
|
|
|
# will be read from is likely hardcoded as /usr/share/metainfo
|
|
|
|
# https://github.com/ximion/appstream/blob/v0.15.2/src/as-pool.c#L117
|
|
|
|
# https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#spec-component-location
|
|
|
|
./fix-metadata-path.patch
|
2021-09-22 15:38:15 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-07-16 19:40:57 +00:00
|
|
|
appstream
|
2020-04-24 23:36:52 +00:00
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
libgee
|
2021-07-16 19:40:57 +00:00
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2022-01-26 04:04:25 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "GitHub Issue Reporter designed for elementary OS";
|
|
|
|
homepage = "https://github.com/elementary/feedback";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-22 15:38:15 +00:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-12-06 16:07:01 +00:00
|
|
|
mainProgram = "io.elementary.feedback";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|