nixpkgs-suyu/pkgs/development/tools/spring-boot-cli/default.nix

48 lines
1.7 KiB
Nix
Raw Normal View History

2020-03-15 03:39:56 +01:00
{ stdenv, fetchzip, jdk, makeWrapper, installShellFiles, coreutils }:
2019-10-01 12:35:42 +02:00
stdenv.mkDerivation rec {
2020-03-15 03:39:56 +01:00
pname = "spring-boot-cli";
2020-07-07 18:01:59 +02:00
version = "2.3.1";
2019-10-01 12:35:42 +02:00
src = fetchzip {
2020-03-15 03:39:56 +01:00
url = "https://repo.spring.io/release/org/springframework/boot/${pname}/${version}.RELEASE/${pname}-${version}.RELEASE-bin.zip";
2020-07-07 18:01:59 +02:00
sha256 = "0ddmwcifrmw197vc49b0x8vfampj3n947r4vv4nni5vjclqqfds5";
2019-10-01 12:35:42 +02:00
};
nativeBuildInputs = [ makeWrapper installShellFiles ];
installPhase = ''
runHook preInstall
rm bin/spring.bat
installShellCompletion --bash shell-completion/bash/spring
installShellCompletion --zsh shell-completion/zsh/_spring
rm -r shell-completion
cp -r . $out
wrapProgram $out/bin/spring \
2020-03-15 03:39:56 +01:00
--set JAVA_HOME ${jdk} \
--set PATH /bin:${coreutils}/bin:${jdk}/bin
2019-10-01 12:35:42 +02:00
runHook postInstall
'';
meta = with stdenv.lib; {
description = ''
CLI which makes it easy to create spring-based applications
'';
longDescription = ''
2020-03-15 03:39:56 +01:00
Spring Boot makes it easy to create stand-alone, production-grade
Spring-based Applications that you can run. We take an opinionated view
of the Spring platform and third-party libraries, so that you can get
started with minimum fuss. Most Spring Boot applications need very
2019-10-01 12:35:42 +02:00
little Spring configuration.
2020-03-15 03:39:56 +01:00
You can use Spring Boot to create Java applications that can be started
by using java -jar or more traditional war deployments. We also provide
2019-10-01 12:35:42 +02:00
a command line tool that runs spring scripts.
'';
homepage = "https://spring.io/projects/spring-boot";
2019-10-01 12:35:42 +02:00
license = licenses.asl20;
platforms = platforms.all;
maintainers = with maintainers; [ moaxcp ];
};
}