2016-09-24 11:21:15 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch }:
|
2010-07-28 11:55:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-09-24 11:21:15 +00:00
|
|
|
name = "fcgi-${version}";
|
|
|
|
version = "2.4.0";
|
2008-02-08 10:54:56 +00:00
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
src = fetchurl {
|
2016-09-24 11:21:15 +00: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 11:21:15 +00: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 22:16:48 +00:00
|
|
|
|
2011-12-07 10:29:52 +00:00
|
|
|
postInstall = "ln -s . $out/include/fastcgi";
|
|
|
|
|
2014-09-19 18:10:58 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-30 15:05:14 +00:00
|
|
|
description = "A language independent, scalable, open extension to CG";
|
2010-07-28 11:55:54 +00:00
|
|
|
homepage = http://www.fastcgi.com/;
|
|
|
|
license = "FastCGI see LICENSE.TERMS";
|
2014-09-19 18:10:58 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2008-02-08 10:54:56 +00:00
|
|
|
};
|
|
|
|
}
|