nixpkgs/pkgs/development/tools/micronaut/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchzip, jdk, makeWrapper, installShellFiles }:
2019-09-07 15:54:22 +03:00
stdenv.mkDerivation rec {
pname = "micronaut";
2023-03-02 19:47:13 +03:00
version = "3.8.6";
2019-09-07 15:54:22 +03:00
src = fetchzip {
url = "https://github.com/micronaut-projects/micronaut-starter/releases/download/v${version}/micronaut-cli-${version}.zip";
2023-03-02 19:47:13 +03:00
sha256 = "sha256-hnECB/tqyEN0g3WIIEHg2uAzEmspB+TQUTECyOtUNy4=";
2019-09-07 15:54:22 +03:00
};
2019-10-01 13:08:22 +03:00
nativeBuildInputs = [ makeWrapper installShellFiles ];
2019-09-07 15:54:22 +03:00
installPhase = ''
runHook preInstall
2019-09-07 15:54:22 +03:00
rm bin/mn.bat
cp -r . $out
wrapProgram $out/bin/mn \
--prefix JAVA_HOME : ${jdk}
2019-10-01 13:08:22 +03:00
installShellCompletion --bash --name mn.bash bin/mn_completion
runHook postInstall
2019-09-07 15:54:22 +03:00
'';
meta = with lib; {
description = "Modern, JVM-based, full-stack framework for building microservice applications";
2019-09-07 15:54:22 +03:00
longDescription = ''
Micronaut is a modern, JVM-based, full stack microservices framework
designed for building modular, easily testable microservice applications.
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
2019-09-07 15:54:22 +03:00
not bound to the size of your codebase.
'';
homepage = "https://micronaut.io/";
2019-09-07 15:54:22 +03:00
license = licenses.asl20;
platforms = platforms.all;
maintainers = with maintainers; [ moaxcp ];
};
}