2020-07-22 05:09:19 +01:00
|
|
|
{ lib
|
2021-02-28 16:46:30 +00:00
|
|
|
, stdenv
|
2020-07-22 05:09:19 +01:00
|
|
|
, 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-12-16 23:39:23 +00:00
|
|
|
, libhandy
|
2020-07-22 05:09:19 +01:00
|
|
|
, openssl
|
|
|
|
, sqlite
|
|
|
|
, webkitgtk
|
2020-07-28 01:02:03 +01:00
|
|
|
, glib-networking
|
|
|
|
, librsvg
|
2021-06-07 13:37:10 +01:00
|
|
|
, xdg-utils
|
2021-06-20 13:01:47 +01:00
|
|
|
, gst_all_1
|
2020-07-22 05:09:19 +01:00
|
|
|
}:
|
|
|
|
|
2021-02-28 16:46:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-07-22 05:09:19 +01:00
|
|
|
pname = "newsflash";
|
2021-06-20 13:01:47 +01:00
|
|
|
version = "1.4.2";
|
2020-07-22 05:09:19 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "news-flash";
|
|
|
|
repo = "news_flash_gtk";
|
|
|
|
rev = version;
|
2021-06-20 13:01:47 +01:00
|
|
|
hash = "sha256-8W158GrvVGu5b3TG5bomK+hAF6jttZuImkmtcZOl91o=";
|
2020-07-22 05:09:19 +01:00
|
|
|
};
|
|
|
|
|
2021-02-28 16:46:30 +00:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2021-06-20 13:01:47 +01:00
|
|
|
hash = "sha256-zHtD3NVWYQ5njg17Z2YmEttiK2oiq01OiAXIZofIqKI=";
|
2021-02-28 16:46:30 +00:00
|
|
|
};
|
2020-07-22 05:09:19 +01:00
|
|
|
|
|
|
|
patches = [
|
2021-02-15 16:08:29 +00:00
|
|
|
# Post install tries to generate an icon cache & update the
|
|
|
|
# desktop database. The gtk setup hook drop-icon-theme-cache.sh
|
|
|
|
# would strip out the icon cache and the desktop database wouldn't
|
|
|
|
# be included in $out. They will generated by xdg.mime.enable &
|
|
|
|
# gtk.iconCache.enable instead.
|
2020-07-22 05:09:19 +01:00
|
|
|
./no-post-install.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
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
|
2021-02-28 16:46:30 +00:00
|
|
|
] ++ (with rustPlatform; [
|
|
|
|
cargoSetupHook
|
|
|
|
rust.cargo
|
|
|
|
rust.rustc
|
|
|
|
]);
|
2020-07-28 01:02:03 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2020-07-22 05:09:19 +01:00
|
|
|
gtk3
|
2020-12-16 23:39:23 +00:00
|
|
|
libhandy
|
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
|
2021-06-20 13:01:47 +01:00
|
|
|
|
|
|
|
# Open links in browser
|
|
|
|
xdg-utils
|
2020-07-28 01:02:03 +01:00
|
|
|
] ++ (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
|
|
|
|
|
|
|
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;
|
2021-05-22 15:47:40 +01:00
|
|
|
maintainers = with maintainers; [ kira-bruneau ];
|
2021-06-20 13:01:47 +01:00
|
|
|
platforms = platforms.unix;
|
2020-07-22 05:09:19 +01:00
|
|
|
};
|
|
|
|
}
|