micronaut 1.2.1 -> 1.2.3

This commit is contained in:
John Mercier 2019-10-01 06:08:22 -04:00 committed by Lassulus
parent 899937e1ca
commit 2e2b068e04

View file

@ -1,21 +1,22 @@
{ stdenv, fetchzip, jdk, makeWrapper }: { stdenv, fetchzip, jdk, makeWrapper, installShellFiles }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "micronaut"; pname = "micronaut";
version = "1.2.1"; version = "1.2.3";
src = fetchzip { src = fetchzip {
url = "https://github.com/micronaut-projects/micronaut-core/releases/download/v${version}/${pname}-${version}.zip"; url = "https://github.com/micronaut-projects/micronaut-core/releases/download/v${version}/${pname}-${version}.zip";
sha256 = "0lfl2hfakpdcfii3a3jr6kws731jamy4fb3dmlnj5ydk0zbnmk6r"; sha256 = "0lfl2hfakpdcfii3a3jr6kws731jamy4fb3dmlnj5ydk0zbnmk6r";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper installShellFiles ];
installPhase = '' installPhase = ''
rm bin/mn.bat rm bin/mn.bat
cp -r . $out cp -r . $out
wrapProgram $out/bin/mn \ wrapProgram $out/bin/mn \
--prefix JAVA_HOME : ${jdk} --prefix JAVA_HOME : ${jdk}
installShellCompletion --bash --name mn.bash bin/mn_completion
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {