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