mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 16:11:58 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
32 lines
871 B
Nix
32 lines
871 B
Nix
{ stdenv, fetchurl, makeWrapper, jre, gawk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "youtrack";
|
|
version = "2018.2.44329";
|
|
|
|
jar = fetchurl {
|
|
url = "https://download.jetbrains.com/charisma/${pname}-${version}.jar";
|
|
sha256 = "1fnnpyikr1x443vxy6f7vlv550sbahpps8awyn13jpg7kpgfm7lk";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
makeWrapper ${jre}/bin/java $out/bin/youtrack \
|
|
--add-flags "\$YOUTRACK_JVM_OPTS -jar $jar" \
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ gawk ]}" \
|
|
--set JRE_HOME ${jre}
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Issue tracking and project management tool for developers";
|
|
maintainers = with maintainers; [ yorickvp ];
|
|
# https://www.jetbrains.com/youtrack/buy/license.html
|
|
license = licenses.unfree;
|
|
};
|
|
}
|