3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/jetbrains/youtrack.nix

32 lines
866 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, jdk11, gawk }:
2018-04-27 15:57:47 +01:00
stdenv.mkDerivation rec {
pname = "youtrack";
version = "2021.1.13597";
2018-04-27 15:57:47 +01:00
jar = fetchurl {
url = "https://download.jetbrains.com/charisma/${pname}-${version}.jar";
sha256 = "0lc0ra95ix5bs1spfjnx5akh8jm754v8lc3yja8dc438zi221qhh";
2018-04-27 15:57:47 +01: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
makeWrapper ${jdk11}/bin/java $out/bin/youtrack \
2018-06-12 23:55:56 +01:00
--add-flags "\$YOUTRACK_JVM_OPTS -jar $jar" \
2021-01-15 07:07:56 +00:00
--prefix PATH : "${lib.makeBinPath [ gawk ]}" \
--set JRE_HOME ${jdk11}
2018-04-27 15:57:47 +01:00
runHook postInstall
'';
meta = with lib; {
2018-06-12 23:55:56 +01:00
description = "Issue tracking and project management tool for developers";
maintainers = teams.serokell.members;
2018-04-27 15:57:47 +01:00
# https://www.jetbrains.com/youtrack/buy/license.html
license = licenses.unfree;
};
}