Merge pull request #126691 from ericdallo/polylith-init
polylith: init at 0.1.0-alpha9
This commit is contained in:
commit
0b277ac4ef
2 changed files with 51 additions and 0 deletions
49
pkgs/development/tools/misc/polylith/default.nix
Normal file
49
pkgs/development/tools/misc/polylith/default.nix
Normal file
|
@ -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" <<EOF
|
||||||
|
#!${runtimeShell}
|
||||||
|
ARGS=""
|
||||||
|
while [ "\$1" != "" ] ; do
|
||||||
|
ARGS="\$ARGS \$1"
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
exec "${jre}/bin/java" "-jar" "${src}" \$ARGS
|
||||||
|
EOF
|
||||||
|
chmod a+x $out/bin/poly
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
installCheckPhase = ''
|
||||||
|
runHook preInstallCheck
|
||||||
|
|
||||||
|
$out/bin/poly help | fgrep -q '${version}'
|
||||||
|
|
||||||
|
runHook postInstallCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -26085,6 +26085,8 @@ in
|
||||||
|
|
||||||
pommed_light = callPackage ../os-specific/linux/pommed-light {};
|
pommed_light = callPackage ../os-specific/linux/pommed-light {};
|
||||||
|
|
||||||
|
polylith = callPackage ../development/tools/misc/polylith { };
|
||||||
|
|
||||||
polymake = callPackage ../applications/science/math/polymake {
|
polymake = callPackage ../applications/science/math/polymake {
|
||||||
openjdk = openjdk8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
|
openjdk = openjdk8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue