2021-12-19 01:06:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jdk17, gawk }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "youtrack";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "2022.3.65371";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
jar = fetchurl {
|
|
|
|
url = "https://download.jetbrains.com/charisma/${pname}-${version}.jar";
|
2023-02-22 10:55:15 +00:00
|
|
|
sha256 = "sha256-NQKWmKEq5ljUXd64zY27Nj8TU+uLdA37chbFVdmwjNs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2021-12-19 01:06:50 +00:00
|
|
|
makeWrapper ${jdk17}/bin/java $out/bin/youtrack \
|
2020-04-24 23:36:52 +00:00
|
|
|
--add-flags "\$YOUTRACK_JVM_OPTS -jar $jar" \
|
2021-01-15 22:18:51 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ gawk ]}" \
|
2021-12-19 01:06:50 +00:00
|
|
|
--set JRE_HOME ${jdk17}
|
2020-04-24 23:36:52 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Issue tracking and project management tool for developers";
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = teams.serokell.members;
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# https://www.jetbrains.com/youtrack/buy/license.html
|
|
|
|
license = licenses.unfree;
|
|
|
|
};
|
|
|
|
}
|