2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jre, gawk }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "youtrack";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "2021.1.13597";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
jar = fetchurl {
|
|
|
|
url = "https://download.jetbrains.com/charisma/${pname}-${version}.jar";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "0lc0ra95ix5bs1spfjnx5akh8jm754v8lc3yja8dc438zi221qhh";
|
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
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/youtrack \
|
|
|
|
--add-flags "\$YOUTRACK_JVM_OPTS -jar $jar" \
|
2021-01-15 22:18:51 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ gawk ]}" \
|
2020-04-24 23:36:52 +00:00
|
|
|
--set JRE_HOME ${jre}
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|