3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/spring-boot-cli/default.nix

48 lines
1.6 KiB
Nix
Raw Normal View History

{ lib, 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-08-31 04:49:42 +01:00
version = "2.3.2";
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-08-31 04:49:42 +01:00
sha256 = "1zqfnxz57234227rp303iwis0mjkkjkpcqnj9jgw78gykjnqdmmq";
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 lib; {
2019-10-01 11:35:42 +01:00
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 ];
};
}