Unverified Commit 3c1ae469 authored by Donovan Glover's avatar Donovan Glover Committed by GitHub
Browse files

offrss: unbreak GCC 14, modernize (#394690)

parents 25f202e7 f5bc547d
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
  libiconv,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "offrss";
  version = "1.3";

@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
  # 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
  env.NIX_CFLAGS_COMPILE = "-fcommon";
  env.NIX_CFLAGS_COMPILE = "-fcommon -Wno-error=implicit-function-declaration";

  configurePhase =
    ''
@@ -43,16 +43,16 @@ stdenv.mkDerivation rec {
    '';

  src = fetchurl {
    url = "http://vicerveza.homeunix.net/~viric/soft/offrss/offrss-${version}.tar.gz";
    sha256 = "1akw1x84jj2m9z60cvlvmz21qwlaywmw18pl7lgp3bj5nw6250p6";
    url = "http://vicerveza.homeunix.net/~viric/soft/offrss/offrss-${finalAttrs.version}.tar.gz";
    hash = "sha256-5oIiDLdFrnEfPfSiwCv3inIcxK+bbgbMT1VISVAPfKo=";
  };

  meta = with lib; {
  meta = {
    homepage = "http://vicerveza.homeunix.net/~viric/cgi-bin/offrss";
    description = "Offline RSS/Atom reader";
    license = licenses.agpl3Plus;
    license = lib.licenses.agpl3Plus;
    maintainers = [ ];
    platforms = lib.platforms.linux;
    mainProgram = "offrss";
  };
}
})