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