offrss: unbreak GCC 14, modernize

This commit is contained in:
awwpotato 2025-03-30 11:09:30 -07:00
parent 026c8eef87
commit f5bc547d29
No known key found for this signature in database

View File

@ -8,7 +8,7 @@
libiconv, libiconv,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "offrss"; pname = "offrss";
version = "1.3"; version = "1.3";
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
# Workaround build failure on -fno-common toolchains: # Workaround build failure on -fno-common toolchains:
# ld: serve_pdf.o:offrss.h:75: multiple definition of `cgi_url_path'; # ld: serve_pdf.o:offrss.h:75: multiple definition of `cgi_url_path';
# offrss.o:offrss.h:75: first defined here # offrss.o:offrss.h:75: first defined here
env.NIX_CFLAGS_COMPILE = "-fcommon"; env.NIX_CFLAGS_COMPILE = "-fcommon -Wno-error=implicit-function-declaration";
configurePhase = configurePhase =
'' ''
@ -43,16 +43,16 @@ stdenv.mkDerivation rec {
''; '';
src = fetchurl { src = fetchurl {
url = "http://vicerveza.homeunix.net/~viric/soft/offrss/offrss-${version}.tar.gz"; url = "http://vicerveza.homeunix.net/~viric/soft/offrss/offrss-${finalAttrs.version}.tar.gz";
sha256 = "1akw1x84jj2m9z60cvlvmz21qwlaywmw18pl7lgp3bj5nw6250p6"; hash = "sha256-5oIiDLdFrnEfPfSiwCv3inIcxK+bbgbMT1VISVAPfKo=";
}; };
meta = with lib; { meta = {
homepage = "http://vicerveza.homeunix.net/~viric/cgi-bin/offrss"; homepage = "http://vicerveza.homeunix.net/~viric/cgi-bin/offrss";
description = "Offline RSS/Atom reader"; description = "Offline RSS/Atom reader";
license = licenses.agpl3Plus; license = lib.licenses.agpl3Plus;
maintainers = [ ]; maintainers = [ ];
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
mainProgram = "offrss"; mainProgram = "offrss";
}; };
} })