2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchzip, jdk, makeWrapper, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "micronaut";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "4.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
2022-11-21 17:40:18 +00:00
|
|
|
url = "https://github.com/micronaut-projects/micronaut-starter/releases/download/v${version}/micronaut-cli-${version}.zip";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-GlNyzR2kRmeGyheaRcz+CPEh11atHeeVn/Rwn+q1gRA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
rm bin/mn.bat
|
|
|
|
cp -r . $out
|
|
|
|
wrapProgram $out/bin/mn \
|
2021-02-05 17:12:51 +00:00
|
|
|
--prefix JAVA_HOME : ${jdk}
|
2020-04-24 23:36:52 +00:00
|
|
|
installShellCompletion --bash --name mn.bash bin/mn_completion
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Modern, JVM-based, full-stack framework for building microservice applications";
|
|
|
|
longDescription = ''
|
|
|
|
Micronaut is a modern, JVM-based, full stack microservices framework
|
|
|
|
designed for building modular, easily testable microservice applications.
|
2021-02-05 17:12:51 +00: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
|
2020-04-24 23:36:52 +00:00
|
|
|
not bound to the size of your codebase.
|
|
|
|
'';
|
|
|
|
homepage = "https://micronaut.io/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ moaxcp ];
|
2023-07-15 17:15:38 +00:00
|
|
|
mainProgram = "mn";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|