Merge pull request #93622 from MetaDark/newsflash
newsflash: init at 1.0.1
This commit is contained in:
commit
99afbadaca
3374
pkgs/applications/networking/feedreaders/newsflash/cargo.lock.patch
Normal file
3374
pkgs/applications/networking/feedreaders/newsflash/cargo.lock.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,80 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitLab
|
||||
, gdk-pixbuf
|
||||
, glib
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, wrapGAppsHook
|
||||
, gsettings-desktop-schemas
|
||||
, gtk3
|
||||
, libhandy
|
||||
, librsvg
|
||||
, openssl
|
||||
, sqlite
|
||||
, webkitgtk
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "newsflash";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "news-flash";
|
||||
repo = "news_flash_gtk";
|
||||
rev = version;
|
||||
sha256 = "1y2jj3z08m29s6ggl8q270mqnvdwibs0f2kxybqhi8mya5pyw902";
|
||||
};
|
||||
|
||||
cargoPatches = [
|
||||
./cargo.lock.patch
|
||||
];
|
||||
|
||||
cargoSha256 = "0z3nhzpyckga112wn32zzwwlpqdgi6n53n8nwgggixvpbnh98112";
|
||||
|
||||
patches = [
|
||||
./no-post-install.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
chmod +x build-aux/cargo.sh
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
gdk-pixbuf # provides setup hook to fix "Unrecognized image file format"
|
||||
glib # provides glib-compile-resources to compile gresources
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gdk-pixbuf
|
||||
glib
|
||||
gsettings-desktop-schemas # used to get system default font in src/article_view/mod.rs
|
||||
gtk3
|
||||
libhandy
|
||||
librsvg # used by gdk-pixbuf & wrapGAppsHook setup hooks to fix "Unrecognized image file format"
|
||||
openssl
|
||||
sqlite
|
||||
webkitgtk
|
||||
];
|
||||
|
||||
# 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;
|
||||
};
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 53f911c..361a233 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -61,5 +61,3 @@ meson.add_dist_script(
|
||||
meson.source_root(),
|
||||
join_paths(meson.build_root(), 'meson-dist', meson.project_name() + '-' + newsflash_version)
|
||||
)
|
||||
-
|
||||
-meson.add_install_script('build-aux/meson_post_install.py')
|
@ -21422,6 +21422,8 @@ in
|
||||
|
||||
netease-cloud-music = callPackage ../applications/audio/netease-cloud-music {};
|
||||
|
||||
newsflash = callPackage ../applications/networking/feedreaders/newsflash { };
|
||||
|
||||
nicotine-plus = callPackage ../applications/networking/soulseek/nicotine-plus {
|
||||
geoip = geoipWithDatabase;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user