youtrack_2022_3: init at 2022.3.65371

As the major update of youtrack 2022.3 -> 2023.3 requires manual interaction,
this adds a package pinned to the old version.
This commit is contained in:
Leona Maroni 2024-01-31 21:00:31 +01:00 committed by Yureka
parent a181ad43a8
commit 4f4a0821aa

View File

@ -0,0 +1,32 @@
{ lib, stdenv, fetchurl, makeWrapper, jdk17, gawk }:
stdenv.mkDerivation (finalAttrs: {
pname = "youtrack";
version = "2022.3.65371";
jar = fetchurl {
url = "https://download.jetbrains.com/charisma/youtrack-${finalAttrs.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 = {
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;
};
})