Merge pull request #59401 from mguentner/mxisd_1_3

mxisd: 1.2.0 -> 1.4.3
This commit is contained in:
Aaron Andersen 2019-05-19 07:00:47 -04:00 committed by GitHub
commit b5a0c38e55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 23 deletions

View File

@ -103,20 +103,12 @@ in {
after = [ "network.target" ]; after = [ "network.target" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
# mxisd / spring.boot needs the configuration to be named "application.yaml"
preStart = ''
config=${cfg.dataDir}/application.yaml
cp ${configFile} $config
chmod 444 $config
'';
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
User = "mxisd"; User = "mxisd";
Group = "mxisd"; Group = "mxisd";
ExecStart = "${cfg.package}/bin/mxisd --spring.config.location=${cfg.dataDir}/ --spring.profiles.active=systemd --java.security.egd=file:/dev/./urandom"; ExecStart = "${cfg.package}/bin/mxisd -c ${configFile}";
WorkingDirectory = cfg.dataDir; WorkingDirectory = cfg.dataDir;
SuccessExitStatus = 143;
Restart = "on-failure"; Restart = "on-failure";
}; };
}; };

View File

@ -151,6 +151,7 @@ in
mumble = handleTest ./mumble.nix {}; mumble = handleTest ./mumble.nix {};
munin = handleTest ./munin.nix {}; munin = handleTest ./munin.nix {};
mutableUsers = handleTest ./mutable-users.nix {}; mutableUsers = handleTest ./mutable-users.nix {};
mxisd = handleTest ./mxisd.nix {};
mysql = handleTest ./mysql.nix {}; mysql = handleTest ./mysql.nix {};
mysqlBackup = handleTest ./mysql-backup.nix {}; mysqlBackup = handleTest ./mysql-backup.nix {};
mysqlReplication = handleTest ./mysql-replication.nix {}; mysqlReplication = handleTest ./mysql-replication.nix {};

View File

@ -1,19 +1,19 @@
--- a/build.gradle 2018-11-16 15:15:29.021469758 +0100 --- a/build.gradle 2019-05-16 21:09:08.373112953 +0200
+++ b/build.gradle 2018-11-16 15:16:50.982289782 +0100 +++ b/build.gradle 2019-05-16 21:09:37.093114427 +0200
@@ -64,7 +64,7 @@ @@ -72,7 +72,7 @@
buildscript { buildscript {
repositories { repositories {
- mavenCentral() - jcenter()
+ REPLACE +REPLACE
} }
dependencies { dependencies {
@@ -73,9 +73,7 @@ @@ -81,9 +81,7 @@
} }
repositories { repositories {
- mavenCentral() - jcenter()
- maven { url "https://kamax.io/maven/releases/" } - maven { url "https://kamax.io/maven/releases/" }
- maven { url "https://kamax.io/maven/snapshots/" } - maven { url "https://kamax.io/maven/snapshots/" }
+REPLACE +REPLACE

View File

@ -1,22 +1,22 @@
{ stdenv, fetchFromGitHub, jdk, jre, git, gradle_2_5, perl, makeWrapper, writeText }: { stdenv, fetchFromGitHub, jdk, jre, git, gradle_4_10, perl, makeWrapper, writeText }:
let let
name = "mxisd-${version}"; name = "mxisd-${version}";
version = "1.2.0"; version = "1.4.3";
rev = "8c4ddd2e6526c1d2b284ba88cce3c2b926d99c62"; rev = "cd890d114a46e4a3792c57cc7a35b95b2c466a16";
src = fetchFromGitHub { src = fetchFromGitHub {
inherit rev; inherit rev;
owner = "kamax-matrix"; owner = "kamax-matrix";
repo = "mxisd"; repo = "mxisd";
sha256 = "083plqg0rxsqwzyskin78wkmylhb7cqz37lpsa1zy56sxpdw1a3l"; sha256 = "05plcf6bq19fmx528fgnib4bw9gz36irwlnfsykys1bpmi60wj69";
}; };
deps = stdenv.mkDerivation { deps = stdenv.mkDerivation {
name = "${name}-deps"; name = "${name}-deps";
inherit src; inherit src;
nativeBuildInputs = [ gradle_2_5 perl git ]; nativeBuildInputs = [ gradle_4_10 perl git ];
buildPhase = '' buildPhase = ''
export MXISD_BUILD_VERSION=${rev} export MXISD_BUILD_VERSION=${rev}
@ -35,13 +35,13 @@ let
outputHashAlgo = "sha256"; outputHashAlgo = "sha256";
outputHashMode = "recursive"; outputHashMode = "recursive";
outputHash = "0shshn05nzv23shry1xpcgvqg59gx929n0qngpfjhbq0kp7px68m"; outputHash = "0z9f3w7lfdvbk26kyckpbgas7mi98rjghck9w0kvx3r7k48p5vnv";
}; };
in in
stdenv.mkDerivation { stdenv.mkDerivation {
inherit name src version; inherit name src version;
nativeBuildInputs = [ gradle_2_5 perl makeWrapper ]; nativeBuildInputs = [ gradle_4_10 perl makeWrapper ];
buildInputs = [ jre ]; buildInputs = [ jre ];
patches = [ ./0001-gradle.patch ]; patches = [ ./0001-gradle.patch ];