@@ -0,0 +1,50 @@
1+{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, vala_0_40, gettext
2+, appstream-glib, desktop-file-utils, glibcLocales, wrapGAppsHook
3+, curl, glib, gnome3, gst_all_1, json-glib, libnotify, libsecret, sqlite
4+}:
5+
6+let
7+ pname = "FeedReader";
8+ version = "2.2";
9+in stdenv.mkDerivation {
10+ name = "${pname}-${version}";
11+
12+ src = fetchFromGitHub {
13+ owner = "jangernert";
14+ repo = pname;
15+ rev = "v" + version;
16+ sha256 = "17588hsa7xv92ba55kmbyvnijypp373yrly48kbc391wadp1z939";
17+ };
18+
19+ nativeBuildInputs = [
20+ meson ninja pkgconfig vala_0_40 gettext appstream-glib desktop-file-utils
21+ glibcLocales wrapGAppsHook
22+ ];
23+
24+ buildInputs = [
25+ curl glib json-glib libnotify libsecret sqlite
26+ ] ++ (with gnome3; [
27+ gtk libgee libpeas libsoup rest webkitgtk gnome_online_accounts
28+ gsettings_desktop_schemas
29+ ]) ++ (with gst_all_1; [
30+ gstreamer gst-plugins-base gst-plugins-good
31+ ]);
32+
33+ # TODO: fix https://github.com/NixOS/nixpkgs/issues/39547
34+ LIBRARY_PATH = stdenv.lib.makeLibraryPath [ curl ];
35+
36+ # vcs_tag function fails with UnicodeDecodeError
37+ LC_ALL = "en_US.UTF-8";
38+
39+ postPatch = ''
40+ patchShebangs meson_post_install.py
41+ '';
42+
43+ meta = with stdenv.lib; {
44+ description = "A modern desktop application designed to complement existing web-based RSS accounts.";
45+ homepage = https://jangernert.github.io/FeedReader/;
46+ license = licenses.gpl3Plus;
47+ maintainers = with maintainers; [ edwtjo ];
48+ platforms = platforms.linux;
49+ };
50+}