2016-09-24 12:21:15 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch }:
|
2010-07-28 12:55:54 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-09-24 12:21:15 +01:00
|
|
|
name = "fcgi-${version}";
|
|
|
|
version = "2.4.0";
|
2008-02-08 10:54:56 +00:00
|
|
|
|
2010-07-28 12:55:54 +01:00
|
|
|
src = fetchurl {
|
2016-09-24 12:21:15 +01:00
|
|
|
url = "https://launchpad.net/debian/+archive/primary/+files/libfcgi_${version}.orig.tar.gz";
|
|
|
|
# url = "http://www.fastcgi.com/dist/${name}.tar.gz";
|
2008-02-08 10:54:56 +00:00
|
|
|
sha256 = "1f857wnl1d6jfrgfgfpz3zdaj8fch3vr13mnpcpvy8bang34bz36";
|
|
|
|
};
|
|
|
|
|
2016-09-24 12:21:15 +01:00
|
|
|
patches = [
|
|
|
|
./gcc-4.4.diff
|
|
|
|
(fetchpatch {
|
|
|
|
# Fix a stack-smashing bug:
|
|
|
|
# xhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681591
|
|
|
|
url = "https://bugs.launchpad.net/ubuntu/+source/libfcgi/+bug/933417/+attachment/2745025/+files/poll.patch";
|
|
|
|
sha256 = "0v3gw0smjvrxh1bv3zx9xp633gbv5dd5bcn3ipj6ckqjyv4i6i7m";
|
|
|
|
})
|
|
|
|
];
|
2011-08-10 23:16:48 +01:00
|
|
|
|
2011-12-07 10:29:52 +00:00
|
|
|
postInstall = "ln -s . $out/include/fastcgi";
|
|
|
|
|
2014-09-19 19:10:58 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-30 16:05:14 +01:00
|
|
|
description = "A language independent, scalable, open extension to CG";
|
2010-07-28 12:55:54 +01:00
|
|
|
homepage = http://www.fastcgi.com/;
|
|
|
|
license = "FastCGI see LICENSE.TERMS";
|
2014-09-19 19:10:58 +01:00
|
|
|
platforms = platforms.all;
|
2008-02-08 10:54:56 +00:00
|
|
|
};
|
|
|
|
}
|