nixpkgs/pkgs/by-name/ne/newsflash/package.nix

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

110 lines
2.3 KiB
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitLab,
2024-07-13 03:24:24 +01:00
rustPlatform,
blueprint-compiler,
cargo,
2024-07-13 03:24:24 +01:00
desktop-file-utils,
meson,
ninja,
pkg-config,
rustc,
wrapGAppsHook4,
gdk-pixbuf,
clapper,
gtk4,
libadwaita,
libxml2,
openssl,
sqlite,
webkitgtk_6_0,
glib-networking,
librsvg,
gst_all_1,
gitUpdater,
2020-07-22 05:09:19 +01:00
}:
stdenv.mkDerivation (finalAttrs: {
2020-07-22 05:09:19 +01:00
pname = "newsflash";
2024-08-02 01:23:54 +01:00
version = "3.3.5";
2020-07-22 05:09:19 +01:00
src = fetchFromGitLab {
owner = "news-flash";
repo = "news_flash_gtk";
2023-05-04 21:52:25 +01:00
rev = "refs/tags/v.${finalAttrs.version}";
2024-08-02 01:23:54 +01:00
hash = "sha256-H2/qKnsByidziUldX5MZBrMyMHfuQ4SN9wXizJUGQ8I=";
2020-07-22 05:09:19 +01:00
};
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
2024-07-13 03:24:24 +01:00
"article_scraper-2.1.0" = "sha256-0jDXH5kkX34tAWK+3hpmW1LWBsFksVgTnSuQX+XXVEM=";
2024-08-02 01:23:54 +01:00
"clapper-0.1.0" = "sha256-IFFqfSq2OpzfopQXSYfnJ68HGLY+rvcLqk7NTdDd+28=";
"news-flash-2.3.0-alpha.0" = "sha256-L7siGYdb8v57nBGYs86smlw971fvurYQJKK/AdTpi6s=";
2024-03-26 20:10:29 +00:00
"newsblur_api-0.3.0" = "sha256-m2178zdJzeskl3BQpZr6tlxTAADehxz8uYcZzi15nhQ=";
};
};
2020-07-22 05:09:19 +01:00
postPatch = ''
2022-09-30 21:25:35 +01:00
patchShebangs build-aux/cargo.sh
2024-07-13 03:24:24 +01:00
meson rewrite kwargs set project / version '${finalAttrs.version}'
2020-07-22 05:09:19 +01:00
'';
2024-06-01 17:18:53 +01:00
strictDeps = true;
2020-07-22 05:09:19 +01:00
nativeBuildInputs = [
2024-07-13 03:24:24 +01:00
blueprint-compiler
cargo
desktop-file-utils
2020-07-22 05:09:19 +01:00
meson
ninja
pkg-config
2024-07-13 03:24:24 +01:00
rustc
rustPlatform.cargoSetupHook
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
];
buildInputs =
[
clapper
gtk4
libadwaita
libxml2
openssl
sqlite
webkitgtk_6_0
# 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 05:09:19 +01:00
passthru.updateScript = gitUpdater { rev-prefix = "v."; };
2022-10-05 00:40:22 +01:00
2024-07-13 03:24:24 +01:00
meta = {
2020-07-22 05:09:19 +01:00
description = "Modern feed reader designed for the GNOME desktop";
homepage = "https://gitlab.com/news-flash/news_flash_gtk";
2024-07-13 03:24:24 +01:00
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [
kira-bruneau
stunkymonkey
];
2024-07-13 03:24:24 +01:00
platforms = lib.platforms.unix;
2023-09-24 15:58:59 +01:00
mainProgram = "io.gitlab.news_flash.NewsFlash";
2020-07-22 05:09:19 +01:00
};
})