2010-07-30 15:47:23 +01:00
|
|
|
{ composableDerivation, fetchurl, bigloo, curl, fcgi ? null, libxml2 ? null, mysql ? null }:
|
|
|
|
|
2008-12-20 01:20:35 +00:00
|
|
|
let edf = composableDerivation.edf; in
|
2010-07-30 15:47:23 +01:00
|
|
|
|
2009-03-06 23:21:28 +00:00
|
|
|
composableDerivation.composableDerivation {} {
|
|
|
|
name = "roadsend-2.9.3";
|
2010-07-30 15:47:23 +01:00
|
|
|
|
2009-03-06 23:21:28 +00:00
|
|
|
buildInputs = [bigloo curl];
|
2010-07-30 15:47:23 +01:00
|
|
|
|
2009-03-06 23:21:28 +00:00
|
|
|
flags = edf { name = "pcre"; }
|
|
|
|
// edf { name = "fcgi"; enable = { inherit fcgi; }; }
|
|
|
|
// edf { name = "xml"; enable = { buildInputs = [ libxml2 ]; }; }
|
|
|
|
// edf { name = "mysql"; enable = { buildInputs = [ mysql ]; }; }
|
|
|
|
// edf { name = "odbc"; };
|
|
|
|
# // edf { name = "gtk"} }
|
|
|
|
# // edf { name = "gtk2", enable = { buildInputs = [ mysql ]; } }
|
2010-07-30 15:47:23 +01:00
|
|
|
|
2009-03-06 23:21:28 +00:00
|
|
|
cfg = {
|
|
|
|
pcreSupport = true;
|
|
|
|
fcgiSupport = true;
|
|
|
|
xmlSupport = true;
|
|
|
|
mysqlSupport = true;
|
|
|
|
};
|
2010-07-30 15:47:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-03-06 23:21:28 +00:00
|
|
|
url = "http://code.roadsend.com/snaps/roadsend-php-20081210.tar.bz2";
|
|
|
|
sha256 = "0yhpiik0dyayd964wvn2k0cq7b1gihx1k3qx343r2l7lla4mapsx";
|
|
|
|
};
|
2008-02-08 01:57:31 +00:00
|
|
|
|
2009-03-06 23:21:28 +00:00
|
|
|
# tell pcc where to find the fastcgi library
|
|
|
|
postInstall = " sed -e \"s=(ldflags fastcgi.*=(ldflags -l fastcgi -L \$fcgi)=\" -i \$out/etc/pcc.conf ";
|
2010-07-30 15:47:23 +01:00
|
|
|
|
2009-03-06 23:21:28 +00:00
|
|
|
meta = {
|
2010-07-30 15:47:23 +01:00
|
|
|
description = "A PHP to C compiler";
|
2009-03-06 23:21:28 +00:00
|
|
|
homepage = http://www.roadsend.com;
|
|
|
|
# you can choose one of the following licenses:
|
|
|
|
# Runtime license is LPGL 2.1
|
|
|
|
license = ["GPL2"];
|
2008-02-08 01:57:31 +00:00
|
|
|
};
|
2008-12-20 01:20:35 +00:00
|
|
|
}
|