2021-11-20 22:25:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jdk17, gawk }:
|
2018-04-27 14:57:47 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "youtrack";
|
2021-11-20 22:25:51 +00:00
|
|
|
version = "2021.4.35970";
|
2018-04-27 14:57:47 +00:00
|
|
|
|
|
|
|
jar = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://download.jetbrains.com/charisma/${pname}-${version}.jar";
|
2021-11-20 22:25:51 +00:00
|
|
|
sha256 = "sha256-HB515TS0XXEAiT463nVHP/naeoF7nmeB+6EK0NJ+5c0=";
|
2018-04-27 14:57:47 +00:00
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2018-04-27 14:57:47 +00:00
|
|
|
|
2019-06-19 15:45:34 +00:00
|
|
|
dontUnpack = true;
|
2018-04-27 14:57:47 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2021-11-20 22:25:51 +00:00
|
|
|
makeWrapper ${jdk17}/bin/java $out/bin/youtrack \
|
2018-06-12 22:55:56 +00:00
|
|
|
--add-flags "\$YOUTRACK_JVM_OPTS -jar $jar" \
|
2021-01-15 07:07:56 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ gawk ]}" \
|
2021-11-20 22:25:51 +00:00
|
|
|
--set JRE_HOME ${jdk17}
|
2018-04-27 14:57:47 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-06-12 22:55:56 +00:00
|
|
|
description = "Issue tracking and project management tool for developers";
|
2021-05-10 19:28:36 +00:00
|
|
|
maintainers = teams.serokell.members;
|
2022-06-02 13:38:41 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2018-04-27 14:57:47 +00:00
|
|
|
# https://www.jetbrains.com/youtrack/buy/license.html
|
|
|
|
license = licenses.unfree;
|
|
|
|
};
|
|
|
|
}
|