From e1d5e9da32aeed8fa8107f1a2e8d19ad0e707db5 Mon Sep 17 00:00:00 2001 From: Eric Dallo Date: Sat, 12 Jun 2021 13:53:17 -0300 Subject: [PATCH] polylith: init at 0.1.0-alpha9 --- .../tools/misc/polylith/default.nix | 49 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/tools/misc/polylith/default.nix diff --git a/pkgs/development/tools/misc/polylith/default.nix b/pkgs/development/tools/misc/polylith/default.nix new file mode 100644 index 000000000000..b29b2521d170 --- /dev/null +++ b/pkgs/development/tools/misc/polylith/default.nix @@ -0,0 +1,49 @@ +{ lib, stdenv, fetchurl, jre, runtimeShell }: + +stdenv.mkDerivation rec { + pname = "polylith"; + version = "0.1.0-alpha9"; + + src = fetchurl { + url = "https://github.com/polyfy/polylith/releases/download/v${version}/poly-${version}.jar"; + sha256 = "0mjn0fibj7z8wihk5frhyd5ai2bmzm909701sphjs7j9lgg0gc4k"; + }; + + dontUnpack = true; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + + cat > "$out/bin/poly" <