offrss: unbreak GCC 14, modernize (#394690)
This commit is contained in:
commit
3c1ae46987
@ -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";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user