From b973a8e0d0197fbd8cbd0f253c45d7e3fbfe2022 Mon Sep 17 00:00:00 2001 From: John Mercier Date: Sat, 7 Sep 2019 08:54:22 -0400 Subject: [PATCH] micronaut init at 1.2.1 --- pkgs/development/tools/micronaut/default.nix | 37 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/tools/micronaut/default.nix diff --git a/pkgs/development/tools/micronaut/default.nix b/pkgs/development/tools/micronaut/default.nix new file mode 100644 index 000000000000..102f911bf85a --- /dev/null +++ b/pkgs/development/tools/micronaut/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchzip, jdk, makeWrapper }: + +stdenv.mkDerivation rec { + pname = "micronaut"; + version = "1.2.1"; + + src = fetchzip { + url = "https://github.com/micronaut-projects/micronaut-core/releases/download/v${version}/${pname}-${version}.zip"; + sha256 = "0lfl2hfakpdcfii3a3jr6kws731jamy4fb3dmlnj5ydk0zbnmk6r"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + rm bin/mn.bat + cp -r . $out + wrapProgram $out/bin/mn \ + --prefix JAVA_HOME : ${jdk} + ''; + + meta = with stdenv.lib; { + description = '' + A modern, JVM-based, full-stack framework for building modular, + easily testable microservice and serverless applications. + ''; + longDescription = '' + 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. + ''; + homepage = https://micronaut.io/; + license = licenses.asl20; + platforms = platforms.all; + maintainers = with maintainers; [ moaxcp ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4ac7927bf8a5..94c0e1b1d7a7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14736,6 +14736,8 @@ in meteor = callPackage ../servers/meteor { }; + micronaut = callPackage ../development/tools/micronaut {}; + minio = callPackage ../servers/minio { }; # Backwards compatibility.