3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #150779 from abbradar/youtrack

youtrack: 2021.1.13597 -> 2021.4.35970, restart on failure
This commit is contained in:
Nikolay Amiantov 2021-12-15 16:04:58 +03:00 committed by GitHub
commit aef12c8678
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View file

@ -128,6 +128,7 @@ in
Type = "simple";
User = "youtrack";
Group = "youtrack";
Restart = "on-failure";
ExecStart = ''${cfg.package}/bin/youtrack --J-Xmx${cfg.maxMemory} --J-XX:MaxMetaspaceSize=${cfg.maxMetaspaceSize} ${cfg.jvmOpts} ${cfg.address}:${toString cfg.port}'';
};
};

View file

@ -1,12 +1,12 @@
{ lib, stdenv, fetchurl, makeWrapper, jdk11, gawk }:
{ lib, stdenv, fetchurl, makeWrapper, jdk17, gawk }:
stdenv.mkDerivation rec {
pname = "youtrack";
version = "2021.1.13597";
version = "2021.4.35970";
jar = fetchurl {
url = "https://download.jetbrains.com/charisma/${pname}-${version}.jar";
sha256 = "0lc0ra95ix5bs1spfjnx5akh8jm754v8lc3yja8dc438zi221qhh";
sha256 = "sha256-HB515TS0XXEAiT463nVHP/naeoF7nmeB+6EK0NJ+5c0=";
};
nativeBuildInputs = [ makeWrapper ];
@ -15,10 +15,10 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
makeWrapper ${jdk11}/bin/java $out/bin/youtrack \
makeWrapper ${jdk17}/bin/java $out/bin/youtrack \
--add-flags "\$YOUTRACK_JVM_OPTS -jar $jar" \
--prefix PATH : "${lib.makeBinPath [ gawk ]}" \
--set JRE_HOME ${jdk11}
--set JRE_HOME ${jdk17}
runHook postInstall
'';