1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00

youtrack: 2022.3.65371 -> 2023.3.23390

This updates YouTrack to a new major version with a new packaging format.
This commit is contained in:
Leona Maroni 2024-01-31 21:01:28 +01:00 committed by Yureka
parent 5333259932
commit a181ad43a8
3 changed files with 41 additions and 34 deletions

View file

@ -0,0 +1,41 @@
{ lib, stdenvNoCC, fetchzip, makeBinaryWrapper, jdk17_headless, gawk, statePath ? "/var/lib/youtrack" }:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "youtrack";
version = "2023.3.23390";
src = fetchzip {
url = "https://download.jetbrains.com/charisma/youtrack-${finalAttrs.version}.zip";
hash = "sha256-p3ZjClVku7EjQSd9wwx0iJ+5DqooaKragdNzj0f8OO8=";
};
nativeBuildInputs = [ makeBinaryWrapper ];
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r * $out
makeWrapper $out/bin/youtrack.sh $out/bin/youtrack \
--prefix PATH : "${lib.makeBinPath [ gawk ]}" \
--set JRE_HOME ${jdk17_headless}
rm -rf $out/internal/java
mv $out/conf $out/conf.orig
ln -s ${statePath}/backups $out/backups
ln -s ${statePath}/conf $out/conf
ln -s ${statePath}/data $out/data
ln -s ${statePath}/logs $out/logs
ln -s ${statePath}/temp $out/temp
runHook postInstall
'';
meta = {
description = "Issue tracking and project management tool for developers";
maintainers = lib.teams.serokell.members ++ [ lib.maintainers.leona ];
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
# https://www.jetbrains.com/youtrack/buy/license.html
license = lib.licenses.unfree;
};
})

View file

@ -1,32 +0,0 @@
{ lib, stdenv, fetchurl, makeWrapper, jdk17, gawk }:
stdenv.mkDerivation rec {
pname = "youtrack";
version = "2022.3.65371";
jar = fetchurl {
url = "https://download.jetbrains.com/charisma/${pname}-${version}.jar";
sha256 = "sha256-NQKWmKEq5ljUXd64zY27Nj8TU+uLdA37chbFVdmwjNs=";
};
nativeBuildInputs = [ makeWrapper ];
dontUnpack = true;
installPhase = ''
runHook preInstall
makeWrapper ${jdk17}/bin/java $out/bin/youtrack \
--add-flags "\$YOUTRACK_JVM_OPTS -jar $jar" \
--prefix PATH : "${lib.makeBinPath [ gawk ]}" \
--set JRE_HOME ${jdk17}
runHook postInstall
'';
meta = with lib; {
description = "Issue tracking and project management tool for developers";
maintainers = teams.serokell.members;
sourceProvenance = with sourceTypes; [ binaryBytecode ];
# https://www.jetbrains.com/youtrack/buy/license.html
license = licenses.unfree;
};
}

View file

@ -27455,8 +27455,6 @@ with pkgs;
yaws = callPackage ../servers/http/yaws { };
youtrack = callPackage ../servers/jetbrains/youtrack.nix { };
zabbixFor = version: rec {
agent = (callPackages ../servers/monitoring/zabbix/agent.nix {}).${version};
proxy-mysql = (callPackages ../servers/monitoring/zabbix/proxy.nix { mysqlSupport = true; }).${version};