24fdeddc0a
GitOrigin-RevId: 2768c7d042a37de65bb1b5b3268fc987e534c49d
43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{ lib, stdenvNoCC, fetchzip, makeBinaryWrapper, jdk21_headless, gawk, statePath ? "/var/lib/youtrack" }:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "youtrack";
|
|
version = "2024.3.47197";
|
|
|
|
src = fetchzip {
|
|
url = "https://download.jetbrains.com/charisma/youtrack-${finalAttrs.version}.zip";
|
|
hash = "sha256-/XTZERUPA7AEvWQsnjDXDVVkmiEn+0D8qgQkOzTJFaA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out
|
|
cp -r * $out
|
|
makeWrapper $out/bin/youtrack.sh $out/bin/youtrack \
|
|
--prefix PATH : "${lib.makeBinPath [ gawk ]}" \
|
|
--set JRE_HOME ${jdk21_headless}
|
|
rm -rf $out/internal/java
|
|
mv $out/conf $out/conf.orig
|
|
ln -s ${statePath}/backups $out/backups
|
|
ln -s ${statePath}/conf $out/conf
|
|
ln -s ${statePath}/data $out/data
|
|
ln -s ${statePath}/logs $out/logs
|
|
ln -s ${statePath}/temp $out/temp
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = {
|
|
description = "Issue tracking and project management tool for developers";
|
|
maintainers = lib.teams.serokell.members ++ [ lib.maintainers.leona ];
|
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
|
# https://www.jetbrains.com/youtrack/buy/license.html
|
|
license = lib.licenses.unfree;
|
|
};
|
|
})
|