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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

107 lines
2.4 KiB
Nix
Raw Normal View History

2020-07-22 05:09:19 +01:00
{ lib
, stdenv
2020-07-22 05:09:19 +01:00
, rustPlatform
, fetchFromGitLab
, meson
, ninja
, pkg-config
2022-09-29 02:14:16 +01:00
, wrapGAppsHook4
, gdk-pixbuf
, glib
2022-09-29 02:14:16 +01:00
, gtk4
, libadwaita
2022-09-30 21:11:40 +01:00
, libxml2
2020-07-22 05:09:19 +01:00
, openssl
, sqlite
, webkitgtk
, glib-networking
, librsvg
2021-06-20 13:01:47 +01:00
, gst_all_1
2022-10-05 00:40:22 +01:00
, gitUpdater
2020-07-22 05:09:19 +01:00
}:
stdenv.mkDerivation (finalAttrs: {
2020-07-22 05:09:19 +01:00
pname = "newsflash";
version = "unstable-2023-04-11";
2020-07-22 05:09:19 +01:00
src = fetchFromGitLab {
owner = "news-flash";
repo = "news_flash_gtk";
rev = "a7bc8bfdf5e58bd78f0f36516e00be8e1296bc12";
sha256 = "sha256-VYIHbOcYopzGTVG+fGyPBS5di7aBayhk+jj9FZh5Tms=";
2020-07-22 05:09:19 +01:00
};
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"javascriptcore6-0.1.0" = "sha256-7w8CDY13dCRlFc77XxJ2/xZqlKSjqM0eiOvILOrJ4ic=";
"news-flash-2.2.2" = "sha256-LXKhVsmkdTk1MSB0T5MDOgTJF/MXbNZ6T5cC2iZxsPs=";
"newsblur_api-0.2.0" = "sha256-6vnFeJbdFeIau2rpUk9o72DD2ZCqicljmQjFVhY71NI=";
};
};
2020-07-22 05:09:19 +01: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 05:09:19 +01:00
./no-post-install.patch
];
postPatch = ''
2022-09-30 21:25:35 +01:00
patchShebangs build-aux/cargo.sh
2020-07-22 05:09:19 +01:00
'';
nativeBuildInputs = [
meson
ninja
pkg-config
2022-09-29 02:14:16 +01:00
wrapGAppsHook4
2020-07-22 05:09:19 +01:00
# Provides setup hook to fix "Unrecognized image file format"
2020-07-22 05:09:19 +01:00
gdk-pixbuf
# Provides glib-compile-resources to compile gresources
2020-07-22 05:09:19 +01:00
glib
] ++ (with rustPlatform; [
cargoSetupHook
rust.cargo
rust.rustc
]);
buildInputs = [
2022-09-29 02:14:16 +01:00
gtk4
libadwaita
2022-09-30 21:11:40 +01:00
libxml2
2020-07-22 05:09:19 +01: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 04:41:04 +01:00
# Audio & video support for webkitgtk WebView
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-bad
]);
2020-07-22 05:09:19 +01:00
2022-10-05 00:40:22 +01:00
passthru.updateScript = gitUpdater {
rev-prefix = "v.";
};
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-11-06 10:43:19 +00:00
maintainers = with maintainers; [ kira-bruneau stunkymonkey ];
2021-06-20 13:01:47 +01:00
platforms = platforms.unix;
2022-09-29 02:14:16 +01:00
mainProgram = "com.gitlab.newsflash";
2020-07-22 05:09:19 +01:00
};
})