1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 nix-update-script,
6 pkg-config,
7 meson,
8 ninja,
9 vala,
10 gtk4,
11 glib,
12 granite7,
13 libadwaita,
14 libgee,
15 wrapGAppsHook4,
16 appstream,
17}:
18
19stdenv.mkDerivation rec {
20 pname = "elementary-feedback";
21 version = "8.0.1";
22
23 src = fetchFromGitHub {
24 owner = "elementary";
25 repo = "feedback";
26 rev = version;
27 sha256 = "sha256-D0x0jKYEB6Bo8ETgVCjgdOItc+VJYlrr8N9lI/Z3eXU=";
28 };
29
30 patches = [
31 # The standard location to the metadata pool where metadata
32 # will be read from is likely hardcoded as /usr/share/metainfo
33 # https://github.com/ximion/appstream/blob/v0.15.2/src/as-pool.c#L117
34 # https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#spec-component-location
35 ./fix-metadata-path.patch
36 ];
37
38 nativeBuildInputs = [
39 meson
40 ninja
41 pkg-config
42 vala
43 wrapGAppsHook4
44 ];
45
46 buildInputs = [
47 appstream
48 granite7
49 gtk4
50 libadwaita
51 libgee
52 glib
53 ];
54
55 passthru = {
56 updateScript = nix-update-script { };
57 };
58
59 meta = with lib; {
60 description = "GitHub Issue Reporter designed for elementary OS";
61 homepage = "https://github.com/elementary/feedback";
62 license = licenses.gpl3Plus;
63 platforms = platforms.linux;
64 teams = [ teams.pantheon ];
65 mainProgram = "io.elementary.feedback";
66 };
67}