11 stdenv.mkDerivation rec {
25 ++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) podofo
26 ++ lib.optional (!stdenv.hostPlatform.isLinux) libiconv;
28 # Workaround build failure on -fno-common toolchains:
29 # ld: serve_pdf.o:offrss.h:75: multiple definition of `cgi_url_path';
30 # offrss.o:offrss.h:75: first defined here
31 env.NIX_CFLAGS_COMPILE = "-fcommon";
35 substituteInPlace Makefile \
36 --replace '$(CC) $(CFLAGS) $(LDFLAGS)' '$(CXX) $(CFLAGS) $(LDFLAGS)'
38 + lib.optionalString (!stdenv.hostPlatform.isLinux) ''
39 sed 's/#EXTRA/EXTRA/' -i Makefile
41 + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
42 sed 's/^PDF/#PDF/' -i Makefile
46 url = "http://vicerveza.homeunix.net/~viric/soft/offrss/offrss-${version}.tar.gz";
47 sha256 = "1akw1x84jj2m9z60cvlvmz21qwlaywmw18pl7lgp3bj5nw6250p6";
51 homepage = "http://vicerveza.homeunix.net/~viric/cgi-bin/offrss";
52 description = "Offline RSS/Atom reader";
53 license = licenses.agpl3Plus;
55 platforms = lib.platforms.linux;
56 mainProgram = "offrss";