added roadsend PHP-Compiler

svn path=/nixpkgs/trunk/; revision=10550
This commit is contained in:
Marc Weber 2008-02-08 01:57:31 +00:00
parent 9e0cfbdfdd
commit 94128cb6a8
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,33 @@
args:
let edf = args.lib.enableDisableFeature; in
( args.mkDerivationByConfiguration {
flagConfig = {
mandatory = { buildInputs = ["bigloo" "curl"]; };
} // edf "pcre" "pcre" { } #support pcre extension [default=check]
// edf "fcgi" "fcgi" { } #support FastCGI web backend [default=check]
// edf "xml" "xml" { pass ="libxml2"; } #support xml extension [default=check]
// edf "mysql" "mysql" { pass = "mysql"; } #support mysql extension [default=check]
#// edf "sqlite3=[ARG]" "sqlite3=[ARG]" { } [>use SQLite 3 library [default=yes], optionally
#specify the prefix for sqlite3 library
// edf "odbc" "odbc" { } #support ODBC extension [default=check]
// edf "gtk" "gtk" { } #support PHP-GTK extension [default=no]
// edf "gtk2" "gtk2" { }; #support PHP-GTK 2 extension [default=no]
optionals = [ "libxml2" "gettext" ];
extraAttrs = co : {
name = "roadsend-2.9.3";
src = args.fetchurl {
url = "http://code.roadsend.com/snaps/roadsend-php-2.9.4.tar.bz2";
sha256 = "0nw7rvrrwkss5cp6ws0m3q63q1mcyy27s8yjhy7kn508db1rgl9x";
};
meta = {
description = "roadsend PHP -> C compiler";
homepage = http://www.roadsend.com;
# you can choose one of the following licenses:
# Runtime license is LPGL 2.1
license = ["GPL2"];
};
};
} ) args

View File

@ -1283,6 +1283,15 @@ rec {
inherit fetchurl stdenv mk noweb groff;
};
roadsend = import ../development/compilers/roadsend {
inherit fetchurl stdenv flex bison mkDerivationByConfiguration bigloo lib curl;
# optional features
# all features pcre, fcgi xml mysql, sqlite3, (not implemented: odbc gtk gtk2)
flags = ["pcre" "fcgi" "xml" "mysql"];
inherit mysql;
inherit libxml2;
};
strategoLibraries = import ../development/compilers/strategoxt/libraries/stratego-libraries-0.17pre.nix {
inherit stdenv fetchurl pkgconfig aterm;
};