dysnomia: 0.10 -> 0.10.1 and add support for new plugins

This commit is contained in:
Sander van der Burg
2021-05-05 20:04:48 +02:00
committed by Sander van der Burg
parent 8e72457f86
commit 1021cd5d6c
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchurl, netcat { lib, stdenv, fetchurl, netcat
, systemd ? null, ejabberd ? null, mysql ? null, postgresql ? null, subversion ? null, mongodb ? null, mongodb-tools ? null, influxdb ? null, supervisor ? null, docker ? null , systemd ? null, ejabberd ? null, mysql ? null, postgresql ? null, subversion ? null, mongodb ? null, mongodb-tools ? null, influxdb ? null, supervisor ? null, docker ? null, nginx ? null, s6-rc ? null, xinetd ? null
, enableApacheWebApplication ? false , enableApacheWebApplication ? false
, enableAxis2WebService ? false , enableAxis2WebService ? false
, enableEjabberdDump ? false , enableEjabberdDump ? false
@@ -10,7 +10,10 @@
, enableMongoDatabase ? false , enableMongoDatabase ? false
, enableInfluxDatabase ? false , enableInfluxDatabase ? false
, enableSupervisordProgram ? false , enableSupervisordProgram ? false
, enableDockerContainer ? true , enableDockerContainer ? false
, enableNginxWebApplication ? false
, enableXinetdService ? false
, enableS6RCService ? false
, enableLegacy ? false , enableLegacy ? false
, catalinaBaseDir ? "/var/tomcat" , catalinaBaseDir ? "/var/tomcat"
, jobTemplate ? "systemd" , jobTemplate ? "systemd"
@@ -25,16 +28,17 @@ assert enableMongoDatabase -> (mongodb != null && mongodb-tools != null);
assert enableInfluxDatabase -> influxdb != null; assert enableInfluxDatabase -> influxdb != null;
assert enableSupervisordProgram -> supervisor != null; assert enableSupervisordProgram -> supervisor != null;
assert enableDockerContainer -> docker != null; assert enableDockerContainer -> docker != null;
assert enableNginxWebApplication -> nginx != null;
assert enableS6RCService -> s6-rc != null;
assert enableXinetdService -> xinetd != null;
stdenv.mkDerivation { stdenv.mkDerivation {
name = "dysnomia-0.10"; name = "dysnomia-0.10.1";
src = fetchurl { src = fetchurl {
url = "https://github.com/svanderburg/dysnomia/releases/download/dysnomia-0.10/dysnomia-0.10.tar.gz"; url = "https://github.com/svanderburg/dysnomia/releases/download/dysnomia-0.10.1/dysnomia-0.10.1.tar.gz";
sha256 = "19zg4nhn0f9v4i7c9hhan1i4xv3ljfpl2d0s84ph8byiscvhyrna"; sha256 = "0w9601g8zpaxrmynx6mh8zz85ldpb8psp7cc6ls8v3srjpj1l5n3";
}; };
preConfigure = if enableEjabberdDump then "export PATH=$PATH:${ejabberd}/sbin" else "";
configureFlags = [ configureFlags = [
(if enableApacheWebApplication then "--with-apache" else "--without-apache") (if enableApacheWebApplication then "--with-apache" else "--without-apache")
(if enableAxis2WebService then "--with-axis2" else "--without-axis2") (if enableAxis2WebService then "--with-axis2" else "--without-axis2")
@@ -47,6 +51,10 @@ stdenv.mkDerivation {
(if enableInfluxDatabase then "--with-influxdb" else "--without-influxdb") (if enableInfluxDatabase then "--with-influxdb" else "--without-influxdb")
(if enableSupervisordProgram then "--with-supervisord" else "--without-supervisord") (if enableSupervisordProgram then "--with-supervisord" else "--without-supervisord")
(if enableDockerContainer then "--with-docker" else "--without-docker") (if enableDockerContainer then "--with-docker" else "--without-docker")
(if enableNginxWebApplication then "--with-nginx" else "--without-nginx")
(if enableXinetdService then "--with-xinetd" else "--without-xinetd")
(if enableS6RCService then "--with-s6-rc" else "--without-s6-rc")
(if stdenv.isDarwin then "--with-launchd" else "--without-launchd")
"--with-job-template=${jobTemplate}" "--with-job-template=${jobTemplate}"
] ++ lib.optional enableLegacy "--enable-legacy"; ] ++ lib.optional enableLegacy "--enable-legacy";
@@ -56,11 +64,13 @@ stdenv.mkDerivation {
++ lib.optional enableMySQLDatabase mysql.out ++ lib.optional enableMySQLDatabase mysql.out
++ lib.optional enablePostgreSQLDatabase postgresql ++ lib.optional enablePostgreSQLDatabase postgresql
++ lib.optional enableSubversionRepository subversion ++ lib.optional enableSubversionRepository subversion
++ lib.optional enableMongoDatabase mongodb ++ lib.optionals enableMongoDatabase [ mongodb mongodb-tools ]
++ lib.optional enableMongoDatabase mongodb-tools
++ lib.optional enableInfluxDatabase influxdb ++ lib.optional enableInfluxDatabase influxdb
++ lib.optional enableSupervisordProgram supervisor ++ lib.optional enableSupervisordProgram supervisor
++ lib.optional enableDockerContainer docker; ++ lib.optional enableDockerContainer docker
++ lib.optional enableNginxWebApplication nginx
++ lib.optional enableS6RCService s6-rc
++ lib.optional enableXinetdService xinetd;
meta = { meta = {
description = "Automated deployment of mutable components and services for Disnix"; description = "Automated deployment of mutable components and services for Disnix";