diff options
author | José Luis Lafuente <jl@lafuente.me> | 2021-09-03 18:38:24 +0200 |
---|---|---|
committer | José Luis Lafuente <jl@lafuente.me> | 2021-09-03 18:43:40 +0200 |
commit | 063fde88482a8c78205e16f8dc4d29b3f98857dd (patch) | |
tree | 0980247d10ab0962646307b7b3c8ec43ded0d6e8 /pkgs/development/tools/misc/polylith | |
parent | 8a2ec31e224de9461390cdd03e5e0b0290cdad0b (diff) | |
download | nixpkgs-063fde88482a8c78205e16f8dc4d29b3f98857dd.tar nixpkgs-063fde88482a8c78205e16f8dc4d29b3f98857dd.tar.gz nixpkgs-063fde88482a8c78205e16f8dc4d29b3f98857dd.tar.bz2 nixpkgs-063fde88482a8c78205e16f8dc4d29b3f98857dd.tar.lz nixpkgs-063fde88482a8c78205e16f8dc4d29b3f98857dd.tar.xz nixpkgs-063fde88482a8c78205e16f8dc4d29b3f98857dd.tar.zst nixpkgs-063fde88482a8c78205e16f8dc4d29b3f98857dd.zip |
polylith: 0.1.0-alpha9 -> 0.2.12-alpha
Use jdk instead of jre (jre is an alias for jdk since java9) Split installPhase to make it more readable
Diffstat (limited to 'pkgs/development/tools/misc/polylith')
-rw-r--r-- | pkgs/development/tools/misc/polylith/default.nix | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/pkgs/development/tools/misc/polylith/default.nix b/pkgs/development/tools/misc/polylith/default.nix index b29b2521d17..4397fd11a27 100644 --- a/pkgs/development/tools/misc/polylith/default.nix +++ b/pkgs/development/tools/misc/polylith/default.nix @@ -1,30 +1,32 @@ -{ lib, stdenv, fetchurl, jre, runtimeShell }: +{ lib, stdenv, fetchurl, jdk, runtimeShell }: stdenv.mkDerivation rec { pname = "polylith"; - version = "0.1.0-alpha9"; + version = "0.2.12-alpha"; src = fetchurl { url = "https://github.com/polyfy/polylith/releases/download/v${version}/poly-${version}.jar"; - sha256 = "0mjn0fibj7z8wihk5frhyd5ai2bmzm909701sphjs7j9lgg0gc4k"; + sha256 = "1zsasyrrssj7kmvgfr63fa5hslw9gnlbp9bh05g72bfgzi99n8kg"; }; dontUnpack = true; - installPhase = '' - runHook preInstall - - mkdir -p $out/bin - - cat > "$out/bin/poly" <<EOF + passAsFile = [ "polyWrapper" ]; + polyWrapper = '' #!${runtimeShell} ARGS="" - while [ "\$1" != "" ] ; do - ARGS="\$ARGS \$1" + while [ "$1" != "" ] ; do + ARGS="$ARGS $1" shift done - exec "${jre}/bin/java" "-jar" "${src}" \$ARGS - EOF + exec "${jdk}/bin/java" "-jar" "${src}" $ARGS + ''; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + cp "$polyWrapperPath" $out/bin/poly chmod a+x $out/bin/poly runHook postInstall @@ -43,7 +45,7 @@ stdenv.mkDerivation rec { description = "A tool used to develop Polylith based architectures in Clojure"; homepage = "https://github.com/polyfy/polylith"; license = licenses.epl10; - maintainers = [ maintainers.ericdallo ]; - platforms = jre.meta.platforms; + maintainers = with maintainers; [ ericdallo jlesquembre ]; + platforms = jdk.meta.platforms; }; } |