@@ -0,0 +1,37 @@
1+{ stdenv, fetchzip, jdk, makeWrapper }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "micronaut";
5+ version = "1.2.1";
6+
7+ src = fetchzip {
8+ url = "https://github.com/micronaut-projects/micronaut-core/releases/download/v${version}/${pname}-${version}.zip";
9+ sha256 = "0lfl2hfakpdcfii3a3jr6kws731jamy4fb3dmlnj5ydk0zbnmk6r";
10+ };
11+
12+ nativeBuildInputs = [ makeWrapper ];
13+
14+ installPhase = ''
15+ rm bin/mn.bat
16+ cp -r . $out
17+ wrapProgram $out/bin/mn \
18+ --prefix JAVA_HOME : ${jdk}
19+ '';
20+
21+ meta = with stdenv.lib; {
22+ description = ''
23+ A modern, JVM-based, full-stack framework for building modular,
24+ easily testable microservice and serverless applications.
25+ '';
26+ longDescription = ''
27+ Reflection-based IoC frameworks load and cache reflection data for
28+ every single field, method, and constructor in your code, whereas with
29+ Micronaut, your application startup time and memory consumption are
30+ not bound to the size of your codebase.
31+ '';
32+ homepage = https://micronaut.io/;
33+ license = licenses.asl20;
34+ platforms = platforms.all;
35+ maintainers = with maintainers; [ moaxcp ];
36+ };
37+}