Merge pull request #325158 from jtbx-prs/fcgi-refactor

fcgi: refactor and adopt
This commit is contained in:
Aleksana 2024-07-07 15:28:52 +08:00 committed by GitHub
commit 4f09e16e66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 22 deletions

View File

@ -1,25 +1,26 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "fcgi";
version = "2.4.2";
src = fetchFromGitHub {
owner = "FastCGI-Archives";
repo = "fcgi2";
rev = version;
sha256 = "1jhz6jfwv5kawa8kajvg18nfwc1b30f38zc0lggszd1vcmrwqkz1";
rev = finalAttrs.version;
hash = "sha256-4U/Mc2U7tK/fo4B9NBwYKzDuLApvSzWR4mqWzZ00H8o=";
};
nativeBuildInputs = [ autoreconfHook ];
postInstall = "ln -s . $out/include/fastcgi";
meta = with lib; {
description = "Language independent, scalable, open extension to CG";
meta = {
description = "Language independent, scalable, open extension to CGI";
homepage = "https://fastcgi-archives.github.io/"; # Formerly http://www.fastcgi.com/
license = "FastCGI see LICENSE.TERMS";
license = "FastCGI, see LICENSE.TERMS";
mainProgram = "cgi-fcgi";
platforms = platforms.all;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ jtbx ];
};
}
})

View File

@ -1,12 +0,0 @@
diff --git a/libfcgi/fcgio.cpp b/libfcgi/fcgio.cpp
index 95e28ca..a7eda0e 100644
--- a/libfcgi/fcgio.cpp
+++ b/libfcgi/fcgio.cpp
@@ -23,6 +23,7 @@
#endif
#include <limits.h>
+#include <cstdio>
#include "fcgio.h"
using std::streambuf;

View File

@ -20454,8 +20454,6 @@ with pkgs;
fb303 = darwin.apple_sdk_11_0.callPackage ../development/libraries/fb303 { };
fcgi = callPackage ../development/libraries/fcgi { };
fcl = callPackage ../development/libraries/fcl { };
febio = callPackage ../development/libraries/febio { };