-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #320801 from Aleksanaa/gnome-feeds
gnome-feeds: 0.16.2 -> 2.2.0; syndication-domination: init at 1.0-unstable-2023-03-25
- Loading branch information
Showing
6 changed files
with
155 additions
and
124 deletions.
There are no files selected for viewing
89 changes: 0 additions & 89 deletions
89
pkgs/applications/networking/feedreaders/gnome-feeds/default.nix
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
pkgs/applications/networking/feedreaders/gnome-feeds/listparser.nix
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{ | ||
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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchFromGitLab, | ||
meson, | ||
ninja, | ||
pkg-config, | ||
pugixml, | ||
fmt, | ||
html-tidy, | ||
enablePython? false, | ||
python3Packages, | ||
}: | ||
|
||
stdenv.mkDerivation { | ||
pname = "syndication-domination"; | ||
# author extraction feature needed by gnome-feeds | ||
version = "1.0-unstable-2023-03-25"; | ||
|
||
src = fetchFromGitLab { | ||
owner = "gabmus"; | ||
repo = "syndication-domination"; | ||
rev = "75920321062d682437f3fb0319dad227d8b18f6c"; | ||
hash = "sha256-fOlE9CsNcmGkVBXaqYHxLDWB8voeRp46+dZYIJIwg7o="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
meson | ||
ninja | ||
pkg-config | ||
]; | ||
|
||
buildInputs = [ | ||
pugixml | ||
fmt | ||
html-tidy | ||
] ++ lib.optionals enablePython [ | ||
python3Packages.python | ||
python3Packages.pybind11 | ||
]; | ||
|
||
mesonFlags = [ | ||
(lib.mesonBool "TO_JSON_BINARY" true) | ||
(lib.mesonBool "PYTHON_BINDINGS" enablePython) | ||
]; | ||
|
||
meta = { | ||
description = "RSS/Atom parser written in C++ with Python binding"; | ||
homepage = "https://gitlab.com/gabmus/syndication-domination"; | ||
license = lib.licenses.agpl3Only; | ||
mainProgram = "SyndicationDomination"; | ||
maintainers = with lib.maintainers; [ aleksana ]; | ||
platforms = lib.platforms.all; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters