2019-10-01 11:08:22 +01:00
|
|
|
{ stdenv, fetchzip, jdk, makeWrapper, installShellFiles }:
|
2019-09-07 13:54:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "micronaut";
|
2019-11-30 16:10:04 +00:00
|
|
|
version = "1.2.6";
|
2019-09-07 13:54:22 +01:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/micronaut-projects/micronaut-core/releases/download/v${version}/${pname}-${version}.zip";
|
2019-11-30 16:10:04 +00:00
|
|
|
sha256 = "0y7qshg6v8s5rwi0fz9xpyhd1yhv8jrw2jhp276a30dfkglx19qn";
|
2019-09-07 13:54:22 +01:00
|
|
|
};
|
|
|
|
|
2019-10-01 11:08:22 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
2019-09-07 13:54:22 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2019-10-24 14:59:16 +01:00
|
|
|
runHook preInstall
|
2019-09-07 13:54:22 +01:00
|
|
|
rm bin/mn.bat
|
|
|
|
cp -r . $out
|
|
|
|
wrapProgram $out/bin/mn \
|
|
|
|
--prefix JAVA_HOME : ${jdk}
|
2019-10-01 11:08:22 +01:00
|
|
|
installShellCompletion --bash --name mn.bash bin/mn_completion
|
2019-10-24 14:59:16 +01:00
|
|
|
runHook postInstall
|
2019-09-07 13:54:22 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-10-24 14:59:16 +01:00
|
|
|
description = "Modern, JVM-based, full-stack framework for building microservice applications";
|
2019-09-07 13:54:22 +01:00
|
|
|
longDescription = ''
|
2019-10-24 14:59:16 +01:00
|
|
|
Micronaut is a modern, JVM-based, full stack microservices framework
|
|
|
|
designed for building modular, easily testable microservice applications.
|
2019-09-07 13:54:22 +01:00
|
|
|
Reflection-based IoC frameworks load and cache reflection data for
|
|
|
|
every single field, method, and constructor in your code, whereas with
|
|
|
|
Micronaut, your application startup time and memory consumption are
|
|
|
|
not bound to the size of your codebase.
|
|
|
|
'';
|
2019-10-24 14:59:16 +01:00
|
|
|
homepage = "https://micronaut.io/";
|
2019-09-07 13:54:22 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ moaxcp ];
|
|
|
|
};
|
|
|
|
}
|