nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 1.5 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchzip, 5 jdk, 6 makeWrapper, 7 installShellFiles, 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "micronaut"; 12 version = "4.10.7"; 13 14 src = fetchzip { 15 url = "https://github.com/micronaut-projects/micronaut-starter/releases/download/v${finalAttrs.version}/micronaut-cli-${finalAttrs.version}.zip"; 16 hash = "sha256-2iYCcqZqpQ5v6VGtGiPYx+97VDuC61F8Vl4MLVh+vc0="; 17 }; 18 19 nativeBuildInputs = [ 20 makeWrapper 21 installShellFiles 22 ]; 23 24 installPhase = '' 25 runHook preInstall 26 rm bin/mn.bat 27 cp -r . $out 28 wrapProgram $out/bin/mn \ 29 --prefix JAVA_HOME : ${jdk} 30 installShellCompletion --bash --name mn.bash bin/mn_completion 31 runHook postInstall 32 ''; 33 34 meta = { 35 description = "Modern, JVM-based, full-stack framework for building microservice applications"; 36 longDescription = '' 37 Micronaut is a modern, JVM-based, full stack microservices framework 38 designed for building modular, easily testable microservice applications. 39 Reflection-based IoC frameworks load and cache reflection data for 40 every single field, method, and constructor in your code, whereas with 41 Micronaut, your application startup time and memory consumption are 42 not bound to the size of your codebase. 43 ''; 44 homepage = "https://micronaut.io/"; 45 license = lib.licenses.asl20; 46 platforms = lib.platforms.all; 47 maintainers = with lib.maintainers; [ moaxcp ]; 48 mainProgram = "mn"; 49 }; 50})