1 { lib, stdenv, fetchurl, jdk, runtimeShell }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/polyfy/polylith/releases/download/v${version}/poly-${version}.jar";
9 sha256 = "sha256-w1STu6+OzEhZ3MnfXer6QRQauEfW15iMIiiMN+nxAe0=";
14 passAsFile = [ "polyWrapper" ];
18 while [ "$1" != "" ] ; do
22 exec "${jdk}/bin/java" "-jar" "${src}" $ARGS
29 cp "$polyWrapperPath" $out/bin/poly
30 chmod a+x $out/bin/poly
35 doInstallCheck = true;
36 installCheckPhase = ''
37 runHook preInstallCheck
39 $out/bin/poly help | fgrep -q '${version}'
41 runHook postInstallCheck
45 description = "Tool used to develop Polylith based architectures in Clojure";
47 homepage = "https://github.com/polyfy/polylith";
48 sourceProvenance = with sourceTypes; [ binaryBytecode ];
49 license = licenses.epl10;
50 maintainers = with maintainers; [ ericdallo jlesquembre ];
51 platforms = jdk.meta.platforms;