2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, curl, libmrss, podofo, libiconv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "offrss";
|
|
|
|
version = "1.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp offrss $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ curl libmrss ]
|
2021-01-15 22:18:51 +00:00
|
|
|
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) podofo
|
|
|
|
++ lib.optional (!stdenv.isLinux) libiconv;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
# Workaround build failure on -fno-common toolchains:
|
|
|
|
# ld: serve_pdf.o:offrss.h:75: multiple definition of `cgi_url_path';
|
|
|
|
# offrss.o:offrss.h:75: first defined here
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
configurePhase = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace '$(CC) $(CFLAGS) $(LDFLAGS)' '$(CXX) $(CFLAGS) $(LDFLAGS)'
|
2021-01-15 22:18:51 +00:00
|
|
|
'' + lib.optionalString (!stdenv.isLinux) ''
|
2020-04-24 23:36:52 +00:00
|
|
|
sed 's/#EXTRA/EXTRA/' -i Makefile
|
2021-01-15 22:18:51 +00:00
|
|
|
'' + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
2020-04-24 23:36:52 +00:00
|
|
|
sed 's/^PDF/#PDF/' -i Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-05 21:33:18 +00:00
|
|
|
url = "http://vicerveza.homeunix.net/~viric/soft/offrss/offrss-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1akw1x84jj2m9z60cvlvmz21qwlaywmw18pl7lgp3bj5nw6250p6";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://vicerveza.homeunix.net/~viric/cgi-bin/offrss";
|
|
|
|
description = "Offline RSS/Atom reader";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.agpl3Plus;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "offrss";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|