96 lines
1.9 KiB
Nix
96 lines
1.9 KiB
Nix
|
{
|
||
|
lib,
|
||
|
python3,
|
||
|
|
||
|
fetchFromGitLab,
|
||
|
fetchpatch,
|
||
|
|
||
|
appstream,
|
||
|
gobject-introspection,
|
||
|
meson,
|
||
|
ninja,
|
||
|
pkg-config,
|
||
|
blueprint-compiler,
|
||
|
wrapGAppsHook4,
|
||
|
|
||
|
glib-networking,
|
||
|
libadwaita,
|
||
|
webkitgtk_6_0,
|
||
|
}:
|
||
|
|
||
|
python3.pkgs.buildPythonApplication rec {
|
||
|
pname = "gnome-feeds";
|
||
|
version = "2.2.0";
|
||
|
pyproject = false;
|
||
|
|
||
|
src = fetchFromGitLab {
|
||
|
domain = "gitlab.gnome.org";
|
||
|
owner = "World";
|
||
|
repo = "gfeeds";
|
||
|
rev = version;
|
||
|
hash = "sha256-XKwRFjz4ocH01mj8KshLGmGxbm/uvDiyYRf65KL0UFw=";
|
||
|
};
|
||
|
|
||
|
patches = [
|
||
|
# both patches needed to built with newer blueprint-compiler
|
||
|
(fetchpatch {
|
||
|
name = "fix-for-blueprint-0.8.patch";
|
||
|
url = "https://gitlab.gnome.org/World/gfeeds/-/commit/cfe860f44f685be302e2ad9f30b55bab08e078ce.patch";
|
||
|
hash = "sha256-exkq9KykB60/X8u3+T1/sShrhGP8BvNkaBWPzm2mchc=";
|
||
|
})
|
||
|
(fetchpatch {
|
||
|
name = "upgrade-blueprint-0.8-syntax.patch";
|
||
|
url = "https://gitlab.gnome.org/World/gfeeds/-/commit/d099fda0c62e338080061683a154f711cc487b30.patch";
|
||
|
hash = "sha256-M6QLRTj+CItk3XPDeexf3/+B1YHJoHsTjwdE6iw1xjM=";
|
||
|
})
|
||
|
];
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
appstream
|
||
|
gobject-introspection
|
||
|
meson
|
||
|
ninja
|
||
|
pkg-config
|
||
|
blueprint-compiler
|
||
|
wrapGAppsHook4
|
||
|
];
|
||
|
|
||
|
buildInputs = [
|
||
|
glib-networking
|
||
|
libadwaita
|
||
|
webkitgtk_6_0
|
||
|
];
|
||
|
|
||
|
dependencies = with python3.pkgs; [
|
||
|
beautifulsoup4
|
||
|
humanize
|
||
|
python-dateutil
|
||
|
syndication-domination
|
||
|
python-magic
|
||
|
pillow
|
||
|
pygments
|
||
|
pygobject3
|
||
|
readability-lxml
|
||
|
pytz
|
||
|
requests
|
||
|
];
|
||
|
|
||
|
dontWrapGApps = true;
|
||
|
|
||
|
preFixup = ''
|
||
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||
|
'';
|
||
|
|
||
|
meta = {
|
||
|
description = "RSS/Atom feed reader for GNOME";
|
||
|
mainProgram = "gfeeds";
|
||
|
homepage = "https://gitlab.gnome.org/World/gfeeds";
|
||
|
license = lib.licenses.gpl3Plus;
|
||
|
maintainers = with lib.maintainers; [
|
||
|
pbogdan
|
||
|
aleksana
|
||
|
];
|
||
|
platforms = lib.platforms.linux;
|
||
|
};
|
||
|
}
|