2018-12-15 03:50:31 +00:00
|
|
|
{ fetchFromGitHub, stdenv, lib, gettext, gtk2, makeWrapper, perlPackages, gnome2 }:
|
2018-02-19 15:50:54 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
perlDeps = with perlPackages; [
|
2021-11-10 21:21:47 +00:00
|
|
|
Glib
|
|
|
|
Gtk2
|
|
|
|
Gnome2
|
|
|
|
Pango
|
|
|
|
Cairo
|
|
|
|
Gnome2Canvas
|
|
|
|
Gnome2VFS
|
|
|
|
Gtk2GladeXML
|
|
|
|
Gtk2TrayIcon
|
|
|
|
XMLLibXML
|
|
|
|
XMLSAXBase
|
|
|
|
XMLParser
|
|
|
|
XMLRSS
|
2018-02-19 15:50:54 +00:00
|
|
|
HTMLParser
|
2021-11-10 21:21:47 +00:00
|
|
|
DateTime
|
|
|
|
DateTimeFormatMail
|
|
|
|
DateTimeFormatW3CDTF
|
|
|
|
DateTimeLocale
|
|
|
|
DateTimeTimeZone
|
2018-02-19 15:50:54 +00:00
|
|
|
ParamsValidate
|
2021-11-10 21:21:47 +00:00
|
|
|
ModuleImplementation
|
|
|
|
ModuleRuntime
|
2018-02-19 15:50:54 +00:00
|
|
|
TryTiny
|
|
|
|
ClassSingleton
|
|
|
|
URI
|
2021-11-10 21:21:47 +00:00
|
|
|
AnyEvent
|
|
|
|
AnyEventHTTP
|
2018-07-22 02:03:24 +00:00
|
|
|
commonsense
|
2018-02-19 15:50:54 +00:00
|
|
|
FileSlurp
|
|
|
|
JSON
|
|
|
|
Guard
|
|
|
|
LocaleGettext
|
|
|
|
];
|
|
|
|
libs = [
|
|
|
|
stdenv.cc.cc.lib
|
2018-12-15 03:50:31 +00:00
|
|
|
gtk2
|
2018-02-19 15:50:54 +00:00
|
|
|
];
|
|
|
|
in
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-11-10 21:21:47 +00:00
|
|
|
version = "unstable-2017-12-01";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "yarssr";
|
2018-02-19 15:50:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JGRennison";
|
|
|
|
repo = "yarssr";
|
|
|
|
rev = "e70eb9fc6563599bfb91c6de6a79654de531c18d";
|
|
|
|
sha256 = "0x7hz8x8qyp3i1vb22zhcnvwxm3jhmmmlr22jqc5b09vpmbw1l45";
|
|
|
|
};
|
|
|
|
|
2018-12-15 03:50:31 +00:00
|
|
|
nativeBuildInputs = [ perlPackages.perl gettext makeWrapper ];
|
2021-11-10 21:21:47 +00:00
|
|
|
buildInputs = perlDeps ++ [ gnome2.libglade ];
|
2018-02-19 15:50:54 +00:00
|
|
|
propagatedBuildInputs = libs ++ perlDeps;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
DESTDIR=$out make install
|
|
|
|
mv $out/usr/* $out/
|
|
|
|
rm -R $out/usr
|
|
|
|
sed -i -r "s!use lib [^;]+;!use lib '$out/share/yarssr';!" $out/bin/yarssr
|
|
|
|
sed -i -r "s!$Yarssr::PREFIX = [^;]+;!$Yarssr::PREFIX = '$out';!" $out/bin/yarssr
|
|
|
|
sed -i -r "s!use Yarssr::Browser;!!" $out/share/yarssr/Yarssr/GUI.pm
|
|
|
|
chmod a+x $out/bin/yarssr
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/yarssr \
|
|
|
|
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath libs} \
|
2018-12-15 03:50:31 +00:00
|
|
|
--set PERL5LIB "${perlPackages.makePerlPath perlDeps}"
|
2018-02-19 15:50:54 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/tsyrogit/zxcvbn-c";
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "A fork of Yarssr (a RSS reader for the GNOME Tray) from http://yarssr.sf.net with various fixes";
|
2018-02-19 15:50:54 +00:00
|
|
|
license = licenses.gpl1;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ xurei ];
|
|
|
|
};
|
|
|
|
}
|