2020-07-22 05:09:19 +01:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook
|
2020-07-28 01:02:03 +01:00
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
2020-07-22 05:09:19 +01:00
|
|
|
, gtk3
|
2020-10-03 23:59:00 +01:00
|
|
|
, libhandy_0
|
2020-07-22 05:09:19 +01:00
|
|
|
, openssl
|
|
|
|
, sqlite
|
|
|
|
, webkitgtk
|
2020-07-28 01:02:03 +01:00
|
|
|
, glib-networking
|
|
|
|
, librsvg
|
|
|
|
, gst_all_1
|
2020-07-22 05:09:19 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "newsflash";
|
2020-08-15 00:26:37 +01:00
|
|
|
version = "1.0.5";
|
2020-07-22 05:09:19 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "news-flash";
|
|
|
|
repo = "news_flash_gtk";
|
|
|
|
rev = version;
|
2020-08-15 00:26:37 +01:00
|
|
|
sha256 = "0kh1xqvxfz58gnrl8av0zkig9vcgmx9iaxw5p6gdm8a7gv18nvp3";
|
2020-07-22 05:09:19 +01:00
|
|
|
};
|
|
|
|
|
2020-08-15 00:26:37 +01:00
|
|
|
cargoSha256 = "059sppidbxzjk8lmjq41d5qbymp9j9v2qr0jxd7xg9avr0klwc2s";
|
2020-07-22 05:09:19 +01:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./no-post-install.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/cargo.sh
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
|
2020-07-28 01:02:03 +01:00
|
|
|
# Provides setup hook to fix "Unrecognized image file format"
|
2020-07-22 05:09:19 +01:00
|
|
|
gdk-pixbuf
|
2020-07-28 01:02:03 +01:00
|
|
|
|
|
|
|
# Provides glib-compile-resources to compile gresources
|
2020-07-22 05:09:19 +01:00
|
|
|
glib
|
2020-07-28 01:02:03 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-07-22 05:09:19 +01:00
|
|
|
gtk3
|
2020-10-03 23:59:00 +01:00
|
|
|
libhandy_0
|
2020-07-22 05:09:19 +01:00
|
|
|
openssl
|
|
|
|
sqlite
|
|
|
|
webkitgtk
|
2020-07-28 01:02:03 +01:00
|
|
|
|
|
|
|
# TLS support for loading external content in webkitgtk WebView
|
|
|
|
glib-networking
|
|
|
|
|
|
|
|
# SVG support for gdk-pixbuf
|
|
|
|
librsvg
|
|
|
|
] ++ (with gst_all_1; [
|
2020-08-10 04:41:04 +01:00
|
|
|
# Audio & video support for webkitgtk WebView
|
2020-07-28 01:02:03 +01:00
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad
|
|
|
|
]);
|
2020-07-22 05:09:19 +01:00
|
|
|
|
|
|
|
# Unset default rust phases to use meson & ninja instead
|
|
|
|
configurePhase = null;
|
|
|
|
buildPhase = null;
|
|
|
|
checkPhase = null;
|
|
|
|
installPhase = null;
|
|
|
|
installCheckPhase = null;
|
|
|
|
|
|
|
|
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; [ metadark ];
|
|
|
|
};
|
|
|
|
}
|