2012-06-27 22:19:30 +01:00
|
|
|
{ stdenv, fetchurl, curl, libmrss, podofo, libiconv }:
|
2011-01-23 16:40:25 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2012-06-27 22:19:30 +01:00
|
|
|
name = "offrss-1.3";
|
2011-01-23 16:40:25 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2011-01-23 16:40:25 +00:00
|
|
|
cp offrss $out/bin
|
|
|
|
'';
|
|
|
|
|
2017-09-05 21:04:38 +01:00
|
|
|
buildInputs = [ curl libmrss ]
|
|
|
|
++ stdenv.lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) podofo
|
2012-06-27 22:19:30 +01:00
|
|
|
++ stdenv.lib.optional (!stdenv.isLinux) libiconv;
|
|
|
|
|
2019-01-04 19:33:51 +00:00
|
|
|
configurePhase = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace '$(CC) $(CFLAGS) $(LDFLAGS)' '$(CXX) $(CFLAGS) $(LDFLAGS)'
|
|
|
|
'' + stdenv.lib.optionalString (!stdenv.isLinux) ''
|
2012-06-27 22:19:30 +01:00
|
|
|
sed 's/#EXTRA/EXTRA/' -i Makefile
|
2017-09-05 21:04:38 +01:00
|
|
|
'' + stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
|
|
|
sed 's/^PDF/#PDF/' -i Makefile
|
2012-06-27 22:19:30 +01:00
|
|
|
'';
|
2011-01-23 16:40:25 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://vicerveza.homeunix.net/~viric/soft/offrss/offrss-1.3.tar.gz";
|
2012-06-27 22:19:30 +01:00
|
|
|
sha256 = "1akw1x84jj2m9z60cvlvmz21qwlaywmw18pl7lgp3bj5nw6250p6";
|
2011-01-23 16:40:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://vicerveza.homeunix.net/~viric/cgi-bin/offrss";
|
2011-01-23 16:40:25 +00:00
|
|
|
description = "Offline RSS/Atom reader";
|
|
|
|
license="AGPLv3+";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2018-03-22 22:26:41 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-01-23 16:40:25 +00:00
|
|
|
};
|
|
|
|
}
|