diff --git a/pkgs/development/libraries/fcgi/default.nix b/pkgs/development/libraries/fcgi/default.nix index 81474b62dc6f..6bea14f38375 100644 --- a/pkgs/development/libraries/fcgi/default.nix +++ b/pkgs/development/libraries/fcgi/default.nix @@ -4,10 +4,12 @@ stdenv.mkDerivation rec { name = "fcgi-2.4.0"; src = fetchurl { - url = http://www.fastcgi.com/dist/fcgi.tar.gz; + url = "http://www.fastcgi.com/dist/${name}.tar.gz"; sha256 = "1f857wnl1d6jfrgfgfpz3zdaj8fch3vr13mnpcpvy8bang34bz36"; }; + patches = [ ./gcc-4.4.diff ]; + meta = { description = "FastCGI is a language independent, scalable, open extension to CG"; homepage = http://www.fastcgi.com/; diff --git a/pkgs/development/libraries/fcgi/gcc-4.4.diff b/pkgs/development/libraries/fcgi/gcc-4.4.diff new file mode 100644 index 000000000000..c6806c12c067 --- /dev/null +++ b/pkgs/development/libraries/fcgi/gcc-4.4.diff @@ -0,0 +1,12 @@ +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 ++#include + #include "fcgio.h" + + using std::streambuf;