Revert "nixos/dysnomia nixos/disnix: Drop modules"
This reverts commit a3f4db8679.
This commit is contained in:
committed by
Sander van der Burg
parent
733f0586c5
commit
4ae1fa61ad
@@ -0,0 +1,28 @@
|
||||
{lib, stdenv, fetchurl, apacheAnt, jdk, axis2, dbus_java }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "DisnixWebService-0.10";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/svanderburg/DisnixWebService/releases/download/DisnixWebService-0.10/DisnixWebService-0.10.tar.gz";
|
||||
sha256 = "0m451msd127ay09yb8rbflg68szm8s4hh65j99f7s3mz375vc114";
|
||||
};
|
||||
buildInputs = [ apacheAnt jdk ];
|
||||
PREFIX = "\${env.out}";
|
||||
AXIS2_LIB = "${axis2}/lib";
|
||||
AXIS2_WEBAPP = "${axis2}/webapps/axis2";
|
||||
DBUS_JAVA_LIB = "${dbus_java}/share/java";
|
||||
prePatch = ''
|
||||
sed -i -e "s|#JAVA_HOME=|JAVA_HOME=${jdk}|" \
|
||||
-e "s|#AXIS2_LIB=|AXIS2_LIB=${axis2}/lib|" \
|
||||
scripts/disnix-soap-client
|
||||
'';
|
||||
buildPhase = "ant";
|
||||
installPhase = "ant install";
|
||||
|
||||
meta = {
|
||||
description = "A SOAP interface and client for Disnix";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.sander ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{ lib, stdenv, fetchurl, pkg-config, glib, libxml2, libxslt, getopt, gettext, nixUnstable, dysnomia, libintl, libiconv, help2man, doclifter, docbook5, dblatex, doxygen, libnixxml, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "disnix-0.10";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/svanderburg/disnix/releases/download/disnix-0.10/disnix-0.10.tar.gz";
|
||||
sha256 = "0mciqbc2h60nc0i6pd36w0m2yr96v97ybrzrqzh5f67ac1f0gqwg";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ glib libxml2 libxslt getopt nixUnstable libintl libiconv dysnomia ];
|
||||
|
||||
meta = {
|
||||
description = "A Nix-based distributed service deployment tool";
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
maintainers = with lib.maintainers; [ sander tomberek ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{ lib, stdenv, fetchurl, dysnomia, disnix, socat, pkg-config, getopt }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "disnixos-0.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/svanderburg/disnixos/releases/download/disnixos-0.9/disnixos-0.9.tar.gz";
|
||||
sha256 = "0vllm5a8d9dvz5cjiq1mmkc4r4vnljabq42ng0ml85sjn0w7xvm7";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ socat dysnomia disnix getopt ];
|
||||
|
||||
meta = {
|
||||
description = "Provides complementary NixOS infrastructure deployment to Disnix";
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
maintainers = [ lib.maintainers.sander ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool , pkg-config, glib, libxml2, libxslt, getopt, libiconv, gettext, nix, disnix, libnixxml }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version="2020-07-04";
|
||||
name = "dydisnix-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "svanderburg";
|
||||
repo = "dydisnix";
|
||||
rev = "e99091f1c2329d562097e35faedee80622d387f0";
|
||||
sha256 = "sha256-XKab2hNGtWDkIEMxE1vMvqQBTP9BvHTabBVfzpH57h0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config autoconf automake libtool ];
|
||||
buildInputs = [ glib libxml2 libxslt getopt nix disnix libiconv gettext libnixxml ];
|
||||
preConfigure = ''
|
||||
./bootstrap
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A toolset enabling self-adaptive redeployment on top of Disnix";
|
||||
longDescription = "Dynamic Disnix is a (very experimental!) prototype extension framework for Disnix supporting dynamic (re)deployment of service-oriented systems.";
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
maintainers = [ lib.maintainers.tomberek ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{ 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
|
||||
, enableApacheWebApplication ? false
|
||||
, enableAxis2WebService ? false
|
||||
, enableEjabberdDump ? false
|
||||
, enableMySQLDatabase ? false
|
||||
, enablePostgreSQLDatabase ? false
|
||||
, enableSubversionRepository ? false
|
||||
, enableTomcatWebApplication ? false
|
||||
, enableMongoDatabase ? false
|
||||
, enableInfluxDatabase ? false
|
||||
, enableSupervisordProgram ? false
|
||||
, enableDockerContainer ? true
|
||||
, enableLegacy ? false
|
||||
, catalinaBaseDir ? "/var/tomcat"
|
||||
, jobTemplate ? "systemd"
|
||||
, getopt
|
||||
}:
|
||||
|
||||
assert enableMySQLDatabase -> mysql != null;
|
||||
assert enablePostgreSQLDatabase -> postgresql != null;
|
||||
assert enableSubversionRepository -> subversion != null;
|
||||
assert enableEjabberdDump -> ejabberd != null;
|
||||
assert enableMongoDatabase -> (mongodb != null && mongodb-tools != null);
|
||||
assert enableInfluxDatabase -> influxdb != null;
|
||||
assert enableSupervisordProgram -> supervisor != null;
|
||||
assert enableDockerContainer -> docker != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "dysnomia-0.10";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/svanderburg/dysnomia/releases/download/dysnomia-0.10/dysnomia-0.10.tar.gz";
|
||||
sha256 = "19zg4nhn0f9v4i7c9hhan1i4xv3ljfpl2d0s84ph8byiscvhyrna";
|
||||
};
|
||||
|
||||
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")
|
||||
(if enableMongoDatabase then "--with-mongodb" else "--without-mongodb")
|
||||
(if enableInfluxDatabase then "--with-influxdb" else "--without-influxdb")
|
||||
(if enableSupervisordProgram then "--with-supervisord" else "--without-supervisord")
|
||||
(if enableDockerContainer then "--with-docker" else "--without-docker")
|
||||
"--with-job-template=${jobTemplate}"
|
||||
] ++ lib.optional enableLegacy "--enable-legacy";
|
||||
|
||||
buildInputs = [ getopt netcat ]
|
||||
++ lib.optional stdenv.isLinux systemd
|
||||
++ lib.optional enableEjabberdDump ejabberd
|
||||
++ lib.optional enableMySQLDatabase mysql.out
|
||||
++ lib.optional enablePostgreSQLDatabase postgresql
|
||||
++ lib.optional enableSubversionRepository subversion
|
||||
++ lib.optional enableMongoDatabase mongodb
|
||||
++ lib.optional enableMongoDatabase mongodb-tools
|
||||
++ lib.optional enableInfluxDatabase influxdb
|
||||
++ lib.optional enableSupervisordProgram supervisor
|
||||
++ lib.optional enableDockerContainer docker;
|
||||
|
||||
meta = {
|
||||
description = "Automated deployment of mutable components and services for Disnix";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.sander ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user