newsflash: 1.0.1 -> 1.0.2

- Removed cargo.lock.patch. Cargo.lock is now available upstream.

- Removed gdk-pixbuf, glib & gsettings-desktop-schemas from
  buildInputs. They are propagated by gtk3.

- Added gstreamer plugins to support audio & video.
This commit is contained in:
MetaDark 2020-07-27 20:02:03 -04:00
parent 127d1fb3a7
commit 8e2751389c
2 changed files with 27 additions and 3394 deletions

View File

@ -1,38 +1,34 @@
{ lib { lib
, rustPlatform , rustPlatform
, fetchFromGitLab , fetchFromGitLab
, gdk-pixbuf
, glib
, meson , meson
, ninja , ninja
, pkg-config , pkg-config
, wrapGAppsHook , wrapGAppsHook
, glib-networking , gdk-pixbuf
, gsettings-desktop-schemas , glib
, gtk3 , gtk3
, libhandy , libhandy
, librsvg
, openssl , openssl
, sqlite , sqlite
, webkitgtk , webkitgtk
, glib-networking
, librsvg
, gst_all_1
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "newsflash"; pname = "newsflash";
version = "1.0.1"; version = "1.0.2";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "news-flash"; owner = "news-flash";
repo = "news_flash_gtk"; repo = "news_flash_gtk";
rev = version; rev = version;
sha256 = "1y2jj3z08m29s6ggl8q270mqnvdwibs0f2kxybqhi8mya5pyw902"; sha256 = "17a8fd5rhs56qrqlfj9ckv45hwfcjhdb8j4cxlnvy7s770s225gd";
}; };
cargoPatches = [ cargoSha256 = "1p0m7la59fn9r2rr26q9mfd1nvyvxb630qiwj96x91p77xv1i30i";
./cargo.lock.patch
];
cargoSha256 = "0z3nhzpyckga112wn32zzwwlpqdgi6n53n8nwgggixvpbnh98112";
patches = [ patches = [
./no-post-install.patch ./no-post-install.patch
@ -44,26 +40,37 @@ rustPlatform.buildRustPackage rec {
''; '';
nativeBuildInputs = [ nativeBuildInputs = [
gdk-pixbuf # provides setup hook to fix "Unrecognized image file format"
glib # provides glib-compile-resources to compile gresources
meson meson
ninja ninja
pkg-config pkg-config
wrapGAppsHook wrapGAppsHook
# Provides setup hook to fix "Unrecognized image file format"
gdk-pixbuf
# Provides glib-compile-resources to compile gresources
glib
]; ];
buildInputs = [ buildInputs = [
gdk-pixbuf
glib
glib-networking # TLS support for loading external content in webkitgtk WebView (eg. images)
gsettings-desktop-schemas # used to get system default font in src/article_view/mod.rs
gtk3 gtk3
libhandy libhandy
librsvg # used by gdk-pixbuf & wrapGAppsHook setup hooks to fix "Unrecognized image file format"
openssl openssl
sqlite sqlite
webkitgtk webkitgtk
];
# 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
]);
# Unset default rust phases to use meson & ninja instead # Unset default rust phases to use meson & ninja instead
configurePhase = null; configurePhase = null;