at 18.03-beta 44 lines 1.5 kB view raw
1{ stdenv, fetchurl, apacheHttpd }: 2 3stdenv.mkDerivation rec { 4 name = "mod_fastcgi-2.4.6"; 5 6 src = fetchurl { 7 url = "http://www.fastcgi.com/dist/${name}.tar.gz"; 8 sha256 = "12g6vcfl9jl8rqf8lzrkdxg2ngca310d3d6an563xqcgrkp8ga55"; 9 }; 10 11 patches = 12 [ (fetchurl { 13 name = "compile-against-apache24.diff"; 14 url = "https://projects.archlinux.org/svntogit/packages.git/plain/trunk/compile-against-apache24.diff?h=packages/mod_fastcgi&id=81c7cb99d15682df3bdb1edcaeea5259e9e43a42"; 15 sha256 = "000qvrf5jb979i37rimrdivcgjijcffgrpkx38c0rn62z9jz61g4"; 16 }) 17 ]; 18 19 buildInputs = [ apacheHttpd ]; 20 21 preBuild = '' 22 cp Makefile.AP2 Makefile 23 makeFlags="top_dir=${apacheHttpd.dev}/share prefix=$out" 24 ''; 25 26 meta = { 27 homepage = http://www.fastcgi.com/; 28 description = "Provide support for the FastCGI protocol"; 29 30 longDescription = '' 31 mod_fastcgi is a module for the Apache web server that enables 32 FastCGI - a standards based protocol for communicating with 33 applications that generate dynamic content for web pages. FastCGI 34 provides a superset of CGI functionality, but a subset of the 35 functionality of programming for a particular web server API. 36 Nonetheless, the feature set is rich enough for programming 37 virtually any type of web application, but the result is generally 38 more scalable. 39 ''; 40 41 platforms = stdenv.lib.platforms.linux; 42 maintainers = [ stdenv.lib.maintainers.peti ]; 43 }; 44}