nixpkgs/pkgs/applications/networking/feedreaders/newsflash/default.nix

95 lines
1.9 KiB
Nix
Raw Normal View History

2020-07-22 04:09:19 +00:00
{ lib
, stdenv
2020-07-22 04:09:19 +00:00
, rustPlatform
, fetchFromGitLab
, meson
, ninja
, pkg-config
, wrapGAppsHook
, gdk-pixbuf
, glib
2020-07-22 04:09:19 +00:00
, gtk3
2020-12-16 23:39:23 +00:00
, libhandy
2020-07-22 04:09:19 +00:00
, openssl
, sqlite
, webkitgtk
, glib-networking
, librsvg
, gst_all_1
2020-07-22 04:09:19 +00:00
}:
stdenv.mkDerivation rec {
2020-07-22 04:09:19 +00:00
pname = "newsflash";
2021-05-13 06:09:10 +00:00
version = "1.4.1";
2020-07-22 04:09:19 +00:00
src = fetchFromGitLab {
owner = "news-flash";
repo = "news_flash_gtk";
rev = version;
2021-05-13 06:09:10 +00:00
hash = "sha256-pskmvztKOwutXRHVnW5u68/0DAuV9Gb+Ovp2JbXiMYo=";
2020-07-22 04:09:19 +00:00
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
2021-05-13 06:09:10 +00:00
hash = "sha256-qq8cZplt5YWUwsXUShMDhQm3RGH2kCEBk64x6bOa50E=";
};
2020-07-22 04:09:19 +00:00
patches = [
# 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 04:09:19 +00:00
./no-post-install.patch
];
postPatch = ''
patchShebangs .
'';
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook
# Provides setup hook to fix "Unrecognized image file format"
2020-07-22 04:09:19 +00:00
gdk-pixbuf
# Provides glib-compile-resources to compile gresources
2020-07-22 04:09:19 +00:00
glib
] ++ (with rustPlatform; [
cargoSetupHook
rust.cargo
rust.rustc
]);
buildInputs = [
2020-07-22 04:09:19 +00:00
gtk3
2020-12-16 23:39:23 +00:00
libhandy
2020-07-22 04:09:19 +00:00
openssl
sqlite
webkitgtk
# TLS support for loading external content in webkitgtk WebView
glib-networking
# SVG support for gdk-pixbuf
librsvg
] ++ (with gst_all_1; [
2020-08-10 03:41:04 +00:00
# Audio & video support for webkitgtk WebView
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-bad
]);
2020-07-22 04:09:19 +00: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;
maintainers = with maintainers; [ kira-bruneau ];
2020-07-22 04:09:19 +00:00
};
}