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

90 lines
1.7 KiB
Nix
Raw Normal View History

2020-07-22 04:09:19 +00:00
{ lib
, rustPlatform
, fetchFromGitLab
, meson
, ninja
, pkg-config
, wrapGAppsHook
, gdk-pixbuf
, glib
2020-07-22 04:09:19 +00:00
, gtk3
, libhandy
, openssl
, sqlite
, webkitgtk
, glib-networking
, librsvg
, gst_all_1
2020-07-22 04:09:19 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "newsflash";
version = "1.0.2";
2020-07-22 04:09:19 +00:00
src = fetchFromGitLab {
owner = "news-flash";
repo = "news_flash_gtk";
rev = version;
sha256 = "17a8fd5rhs56qrqlfj9ckv45hwfcjhdb8j4cxlnvy7s770s225gd";
2020-07-22 04:09:19 +00:00
};
cargoSha256 = "1p0m7la59fn9r2rr26q9mfd1nvyvxb630qiwj96x91p77xv1i30i";
2020-07-22 04:09:19 +00:00
patches = [
./no-post-install.patch
];
postPatch = ''
chmod +x build-aux/cargo.sh
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
];
buildInputs = [
2020-07-22 04:09:19 +00:00
gtk3
libhandy
openssl
sqlite
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
]);
2020-07-22 04:09:19 +00: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 ];
platforms = platforms.all;
};
}