mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
51 lines
1.4 KiB
Nix
51 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchzip,
|
|
jdk25,
|
|
makeWrapper,
|
|
installShellFiles,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "micronaut";
|
|
version = "5.1.0";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/micronaut-projects/micronaut-starter/releases/download/v${finalAttrs.version}/micronaut-cli-${finalAttrs.version}.zip";
|
|
hash = "sha256-eJ3iCQKIpUUgsgqbD6HzH3xs/crYnaaUbzWDWFhSPbA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
installShellFiles
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
rm bin/mn.bat
|
|
cp -r . $out
|
|
wrapProgram $out/bin/mn \
|
|
--prefix JAVA_HOME : ${jdk25}
|
|
installShellCompletion --bash --name mn.bash bin/mn_completion
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
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.
|
|
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 = lib.licenses.asl20;
|
|
platforms = lib.platforms.all;
|
|
maintainers = with lib.maintainers; [ moaxcp ];
|
|
mainProgram = "mn";
|
|
};
|
|
})
|