571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
41 lines
1.4 KiB
Nix
41 lines
1.4 KiB
Nix
{ lib, stdenv, fetchzip, jdk, makeWrapper, installShellFiles }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "micronaut";
|
|
version = "4.6.3";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/micronaut-projects/micronaut-starter/releases/download/v${version}/micronaut-cli-${version}.zip";
|
|
sha256 = "sha256-3bOGun+IjRWW3KeaXJIKh0/20RpqhARCgJQysrZhNf4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
rm bin/mn.bat
|
|
cp -r . $out
|
|
wrapProgram $out/bin/mn \
|
|
--prefix JAVA_HOME : ${jdk}
|
|
installShellCompletion --bash --name mn.bash bin/mn_completion
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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 = licenses.asl20;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ moaxcp ];
|
|
mainProgram = "mn";
|
|
};
|
|
}
|