2013-06-27 14:32:11 +01:00
|
|
|
{ stdenv, fetchurl
|
2013-11-06 13:22:48 +00:00
|
|
|
, ejabberd ? null, mysql ? null, postgresql ? null, subversion ? null, mongodb ? null
|
2013-06-27 14:32:11 +01:00
|
|
|
, enableApacheWebApplication ? false
|
|
|
|
, enableAxis2WebService ? false
|
|
|
|
, enableEjabberdDump ? false
|
|
|
|
, enableMySQLDatabase ? false
|
|
|
|
, enablePostgreSQLDatabase ? false
|
|
|
|
, enableSubversionRepository ? false
|
|
|
|
, enableTomcatWebApplication ? false
|
2013-11-06 13:22:48 +00:00
|
|
|
, enableMongoDatabase ? false
|
2013-06-27 14:32:11 +01:00
|
|
|
, catalinaBaseDir ? "/var/tomcat"
|
2014-03-30 20:38:49 +01:00
|
|
|
, getopt
|
2013-06-27 14:32:11 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert enableMySQLDatabase -> mysql != null;
|
|
|
|
assert enablePostgreSQLDatabase -> postgresql != null;
|
|
|
|
assert enableSubversionRepository -> subversion != null;
|
|
|
|
assert enableEjabberdDump -> ejabberd != null;
|
2013-11-06 13:22:48 +00:00
|
|
|
assert enableMongoDatabase -> mongodb != null;
|
2013-06-27 14:32:11 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-03-02 09:37:10 +00:00
|
|
|
name = "dysnomia-0.3pre92a89d735776366633fdea301fdc6dc537009bba";
|
2013-06-27 14:32:11 +01:00
|
|
|
src = fetchurl {
|
2015-03-02 09:37:10 +00:00
|
|
|
url = http://hydra.nixos.org/build/20062629/download/1/dysnomia-0.3pre92a89d735776366633fdea301fdc6dc537009bba.tar.gz;
|
|
|
|
sha256 = "0dv7ivph2v5j4g5fqdrllxyzmp1hwnsd22n1s61qpkzb6qxaywjj";
|
2013-06-27 14:32:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = if enableEjabberdDump then "export PATH=$PATH:${ejabberd}/sbin" else "";
|
|
|
|
|
|
|
|
configureFlags = ''
|
|
|
|
${if enableApacheWebApplication then "--with-apache" else "--without-apache"}
|
|
|
|
${if enableAxis2WebService then "--with-axis2" else "--without-axis2"}
|
|
|
|
${if enableEjabberdDump then "--with-ejabberd" else "--without-ejabberd"}
|
|
|
|
${if enableMySQLDatabase then "--with-mysql" else "--without-mysql"}
|
|
|
|
${if enablePostgreSQLDatabase then "--with-postgresql" else "--without-postgresql"}
|
|
|
|
${if enableSubversionRepository then "--with-subversion" else "--without-subversion"}
|
|
|
|
${if enableTomcatWebApplication then "--with-tomcat=${catalinaBaseDir}" else "--without-tomcat"}
|
2013-11-06 13:22:48 +00:00
|
|
|
${if enableMongoDatabase then "--with-mongodb" else "--without-mongodb"}
|
2013-06-27 14:32:11 +01:00
|
|
|
'';
|
|
|
|
|
2014-03-30 20:38:49 +01:00
|
|
|
buildInputs = [ getopt ]
|
2013-06-27 14:32:11 +01:00
|
|
|
++ stdenv.lib.optional enableEjabberdDump ejabberd
|
|
|
|
++ stdenv.lib.optional enableMySQLDatabase mysql
|
|
|
|
++ stdenv.lib.optional enablePostgreSQLDatabase postgresql
|
2013-11-06 13:22:48 +00:00
|
|
|
++ stdenv.lib.optional enableSubversionRepository subversion
|
|
|
|
++ stdenv.lib.optional enableMongoDatabase mongodb;
|
2013-06-27 14:32:11 +01:00
|
|
|
|
|
|
|
meta = {
|
2013-07-01 13:27:18 +01:00
|
|
|
description = "Automated deployment of mutable components and services for Disnix";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2013-06-27 14:32:11 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.sander ];
|
|
|
|
};
|
|
|
|
}
|