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