1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/servers/jetbrains/youtrack.nix

32 lines
869 B
Nix
Raw Normal View History

2018-06-12 23:55:56 +01:00
{ stdenv, fetchurl, makeWrapper, jre, gawk }:
2018-04-27 15:57:47 +01:00
stdenv.mkDerivation rec {
name = "youtrack-${version}";
2018-06-12 23:55:56 +01:00
version = "2018.2.44329";
2018-04-27 15:57:47 +01:00
jar = fetchurl {
url = "https://download.jetbrains.com/charisma/${name}.jar";
2018-06-12 23:55:56 +01:00
sha256 = "1fnnpyikr1x443vxy6f7vlv550sbahpps8awyn13jpg7kpgfm7lk";
2018-04-27 15:57:47 +01:00
};
buildInputs = [ makeWrapper ];
2018-06-12 23:55:56 +01:00
unpackPhase = ":";
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" \
--prefix PATH : "${stdenv.lib.makeBinPath [ gawk ]}" \
--set JRE_HOME ${jre}
2018-04-27 15:57:47 +01:00
runHook postInstall
'';
meta = with stdenv.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;
};
}