Merge pull request #126691 from ericdallo/polylith-init

polylith: init at 0.1.0-alpha9

authored by

Sandro and committed by
GitHub
0b277ac4 f1c140d5

+51
+49
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 31 + ''; 32 + 33 + doInstallCheck = true; 34 + installCheckPhase = '' 35 + runHook preInstallCheck 36 + 37 + $out/bin/poly help | fgrep -q '${version}' 38 + 39 + runHook postInstallCheck 40 + ''; 41 + 42 + meta = with lib; { 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 + }
+2
pkgs/top-level/all-packages.nix
··· 26085 26085 26086 26086 pommed_light = callPackage ../os-specific/linux/pommed-light {}; 26087 26087 26088 + polylith = callPackage ../development/tools/misc/polylith { }; 26089 + 26088 26090 polymake = callPackage ../applications/science/math/polymake { 26089 26091 openjdk = openjdk8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731 26090 26092 };