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";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "2021.4.35970";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
jar = fetchurl {
|
|
|
|
url = "https://download.jetbrains.com/charisma/${pname}-${version}.jar";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-HB515TS0XXEAiT463nVHP/naeoF7nmeB+6EK0NJ+5c0=";
|
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;
|
2020-04-24 23:36:52 +00:00
|
|
|
# https://www.jetbrains.com/youtrack/buy/license.html
|
|
|
|
license = licenses.unfree;
|
|
|
|
};
|
|
|
|
}
|