Merge pull request #136610 from jlesquembre/polylith

polylith: 0.1.0-alpha9 -> 0.2.12-alpha

authored by Bobby Rong and committed by GitHub 2a1e3ac2 ec2383ef

+17 -15
+17 -15
pkgs/development/tools/misc/polylith/default.nix
··· 1 - { lib, stdenv, fetchurl, jre, runtimeShell }: 2 3 stdenv.mkDerivation rec { 4 pname = "polylith"; 5 - version = "0.1.0-alpha9"; 6 7 src = fetchurl { 8 url = "https://github.com/polyfy/polylith/releases/download/v${version}/poly-${version}.jar"; 9 - sha256 = "0mjn0fibj7z8wihk5frhyd5ai2bmzm909701sphjs7j9lgg0gc4k"; 10 }; 11 12 dontUnpack = true; 13 14 - installPhase = '' 15 - runHook preInstall 16 - 17 - mkdir -p $out/bin 18 - 19 - cat > "$out/bin/poly" <<EOF 20 #!${runtimeShell} 21 ARGS="" 22 - while [ "\$1" != "" ] ; do 23 - ARGS="\$ARGS \$1" 24 shift 25 done 26 - exec "${jre}/bin/java" "-jar" "${src}" \$ARGS 27 - EOF 28 chmod a+x $out/bin/poly 29 30 runHook postInstall ··· 43 description = "A tool used to develop Polylith based architectures in Clojure"; 44 homepage = "https://github.com/polyfy/polylith"; 45 license = licenses.epl10; 46 - maintainers = [ maintainers.ericdallo ]; 47 - platforms = jre.meta.platforms; 48 }; 49 }
··· 1 + { lib, stdenv, fetchurl, jdk, runtimeShell }: 2 3 stdenv.mkDerivation rec { 4 pname = "polylith"; 5 + version = "0.2.12-alpha"; 6 7 src = fetchurl { 8 url = "https://github.com/polyfy/polylith/releases/download/v${version}/poly-${version}.jar"; 9 + sha256 = "1zsasyrrssj7kmvgfr63fa5hslw9gnlbp9bh05g72bfgzi99n8kg"; 10 }; 11 12 dontUnpack = true; 13 14 + passAsFile = [ "polyWrapper" ]; 15 + polyWrapper = '' 16 #!${runtimeShell} 17 ARGS="" 18 + while [ "$1" != "" ] ; do 19 + ARGS="$ARGS $1" 20 shift 21 done 22 + exec "${jdk}/bin/java" "-jar" "${src}" $ARGS 23 + ''; 24 + 25 + installPhase = '' 26 + runHook preInstall 27 + 28 + mkdir -p $out/bin 29 + cp "$polyWrapperPath" $out/bin/poly 30 chmod a+x $out/bin/poly 31 32 runHook postInstall ··· 45 description = "A tool used to develop Polylith based architectures in Clojure"; 46 homepage = "https://github.com/polyfy/polylith"; 47 license = licenses.epl10; 48 + maintainers = with maintainers; [ ericdallo jlesquembre ]; 49 + platforms = jdk.meta.platforms; 50 }; 51 }