1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/spring-boot-cli/default.nix

48 lines
1.7 KiB
Nix
Raw Normal View History

2020-03-15 02:39:56 +00:00
{ stdenv, fetchzip, jdk, makeWrapper, installShellFiles, coreutils }:
2019-10-01 11:35:42 +01:00
stdenv.mkDerivation rec {
2020-03-15 02:39:56 +00:00
pname = "spring-boot-cli";
2020-05-24 12:37:55 +01:00
version = "2.3.0";
2019-10-01 11:35:42 +01:00
src = fetchzip {
2020-03-15 02:39:56 +00:00
url = "https://repo.spring.io/release/org/springframework/boot/${pname}/${version}.RELEASE/${pname}-${version}.RELEASE-bin.zip";
2020-05-24 12:37:55 +01:00
sha256 = "1zjbgs1qx75jgxc46x9380iqh8pfgacih38ad3qxd0106a8lcp5h";
2019-10-01 11:35:42 +01: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 02:39:56 +00:00
--set JAVA_HOME ${jdk} \
--set PATH /bin:${coreutils}/bin:${jdk}/bin
2019-10-01 11:35:42 +01:00
runHook postInstall
'';
meta = with stdenv.lib; {
description = ''
CLI which makes it easy to create spring-based applications
'';
longDescription = ''
2020-03-15 02:39:56 +00: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 11:35:42 +01:00
little Spring configuration.
2020-03-15 02:39:56 +00: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 11:35:42 +01:00
a command line tool that runs spring scripts.
'';
homepage = "https://spring.io/projects/spring-boot";
2019-10-01 11:35:42 +01:00
license = licenses.asl20;
platforms = platforms.all;
maintainers = with maintainers; [ moaxcp ];
};
}