2024-01-31 21:01:28 +01:00
|
|
|
{ lib, stdenvNoCC, fetchzip, makeBinaryWrapper, jdk17_headless, gawk, statePath ? "/var/lib/youtrack" }:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "youtrack";
|
2024-04-23 19:56:39 +02:00
|
|
|
version = "2024.1.28928";
|
2024-01-31 21:01:28 +01:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://download.jetbrains.com/charisma/youtrack-${finalAttrs.version}.zip";
|
2024-04-23 19:56:39 +02:00
|
|
|
hash = "sha256-8+dZ1YTpvOX0IEEbFzv4t8T/U/BZMeDCZL7Ju25WBpE=";
|
2024-01-31 21:01:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ${jdk17_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
|
|
|
|
'';
|
|
|
|
|
2024-01-31 21:05:40 +01:00
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2024-01-31 21:01:28 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
})
|