reposilite-bin: fix wrapper path

This commit is contained in:
raf 2024-04-10 21:15:37 +03:00
parent 5ef8dd8b3b
commit b6a0e066cb
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29

View file

@ -24,11 +24,11 @@ in
runHook preInstall runHook preInstall
# wrap the reposilite jar with the JAVA_HOME environment variable and memory flags # wrap the reposilite jar with the JAVA_HOME environment variable and memory flags
# maxMemory should be in megabytes. 40m is a reasonable defeat, but you may increase # maxMemory, by default is 40m, which is a reasonable default, but you may increase
# it if you experience a higher load # it if you experience a higher load
makeWrapper ${jdk}/bin/java $out/bin/reposilite \ makeWrapper ${jdk}/bin/java $out/bin/reposilite \
--set JAVA_HOME ${jdk.home} \ --set JAVA_HOME ${jdk.home} \
--add-flags "-Xmx${maxMemory}m -jar $src/reposilite-${finalAttrs.version}-all.jar" --add-flags "-Xmx${maxMemory} -jar $src"
runHook postInstall runHook postInstall
''; '';