Merge pull request #319363 from NixOS/backport-316462-to-release-24.05

[Backport release-24.05] newsflash: 3.2.0 -> 3.3.0
This commit is contained in:
Nick Cao 2024-06-12 19:30:06 -04:00 committed by GitHub
commit 3e43dc2ded
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 572 additions and 544 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,44 +1,47 @@
{ lib
, stdenv
, rustPlatform
, fetchFromGitLab
, substituteAll
, cargo
, meson
, ninja
, pkg-config
, rustc
, blueprint-compiler
, wrapGAppsHook4
, gdk-pixbuf
, glib
, gtk4
, libadwaita
, libxml2
, openssl
, sqlite
, webkitgtk
, glib-networking
, librsvg
, gst_all_1
, gitUpdater
{
lib,
stdenv,
rustPlatform,
fetchFromGitLab,
substituteAll,
cargo,
meson,
ninja,
pkg-config,
rustc,
blueprint-compiler,
wrapGAppsHook4,
gdk-pixbuf,
glib,
clapper,
gtk4,
libadwaita,
libxml2,
openssl,
sqlite,
webkitgtk,
glib-networking,
librsvg,
gst_all_1,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "newsflash";
version = "3.2.0";
version = "3.3.0";
src = fetchFromGitLab {
owner = "news-flash";
repo = "news_flash_gtk";
rev = "refs/tags/v.${finalAttrs.version}";
hash = "sha256-buXFQ/QAFOcdcywlacySuq8arqPEJIti1nK+yl3yWck=";
hash = "sha256-s8h/OIJJzMmsCsaQJ0SOjCAVXfYQbjOupdDtLOqM9d0=";
};
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"news-flash-2.3.0-alpha.0" = "sha256-WITvnqeEDp793AlZ3gj8Tg0dfccuOj0Us5H5FaEtkxk=";
"clapper-0.1.0" = "sha256-xQ7l6luO5E4PMjtN9elg0bkJa7IhWzA7KuYDJ+m/VY0=";
"news-flash-2.3.0-alpha.0" = "sha256-ZgX6tQmPDMSpLcYD04u2ReQXdzeGzQTwGaUy/y4z4do=";
"newsblur_api-0.3.0" = "sha256-m2178zdJzeskl3BQpZr6tlxTAADehxz8uYcZzi15nhQ=";
};
};
@ -62,6 +65,8 @@ stdenv.mkDerivation (finalAttrs: {
patchShebangs build-aux/cargo.sh
'';
strictDeps = true;
nativeBuildInputs = [
meson
ninja
@ -79,36 +84,40 @@ stdenv.mkDerivation (finalAttrs: {
blueprint-compiler
];
buildInputs = [
gtk4
libadwaita
libxml2
openssl
sqlite
webkitgtk
buildInputs =
[
clapper
gtk4
libadwaita
libxml2
openssl
sqlite
webkitgtk
# TLS support for loading external content in webkitgtk WebView
glib-networking
# TLS support for loading external content in webkitgtk WebView
glib-networking
# SVG support for gdk-pixbuf
librsvg
] ++ (with gst_all_1; [
# Audio & video support for webkitgtk WebView
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-bad
]);
# SVG support for gdk-pixbuf
librsvg
]
++ (with gst_all_1; [
# Audio & video support for webkitgtk WebView
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-bad
]);
passthru.updateScript = gitUpdater {
rev-prefix = "v.";
};
passthru.updateScript = gitUpdater { rev-prefix = "v."; };
meta = with lib; {
description = "A modern feed reader designed for the GNOME desktop";
homepage = "https://gitlab.com/news-flash/news_flash_gtk";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ kira-bruneau stunkymonkey ];
maintainers = with maintainers; [
kira-bruneau
stunkymonkey
];
platforms = platforms.unix;
mainProgram = "io.gitlab.news_flash.NewsFlash";
};