nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, fetchpatch }:
2
3stdenv.mkDerivation rec {
4 name = "fcgi-${version}";
5 version = "2.4.0";
6
7 src = fetchurl {
8 url = "https://launchpad.net/debian/+archive/primary/+files/libfcgi_${version}.orig.tar.gz";
9 # url = "http://www.fastcgi.com/dist/${name}.tar.gz";
10 sha256 = "1f857wnl1d6jfrgfgfpz3zdaj8fch3vr13mnpcpvy8bang34bz36";
11 };
12
13 patches = [
14 ./gcc-4.4.diff
15 (fetchpatch {
16 # Fix a stack-smashing bug:
17 # xhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681591
18 url = "https://bugs.launchpad.net/ubuntu/+source/libfcgi/+bug/933417/+attachment/2745025/+files/poll.patch";
19 sha256 = "0v3gw0smjvrxh1bv3zx9xp633gbv5dd5bcn3ipj6ckqjyv4i6i7m";
20 })
21 ];
22
23 postInstall = "ln -s . $out/include/fastcgi";
24
25 meta = with stdenv.lib; {
26 description = "A language independent, scalable, open extension to CG";
27 homepage = http://www.fastcgi.com/;
28 license = "FastCGI see LICENSE.TERMS";
29 platforms = platforms.all;
30 maintainers = with maintainers; [ wkennington ];
31 };
32}