about summary refs log tree commit diff
path: root/pkgs/development/tools/spring-boot-cli
diff options
context:
space:
mode:
authorJohn Mercier <moaxcp@gmail.com>2020-03-14 22:39:56 -0400
committerJohn Mercier <moaxcp@gmail.com>2020-04-30 22:10:14 -0400
commit21821de828bc1e8af653930c43700da29d7399f9 (patch)
treeeac3cc2486f4b5c54112f2c74e346f89cf0783d1 /pkgs/development/tools/spring-boot-cli
parent5445b8d8d09b4fde038fc71b2178d68a82a884e7 (diff)
downloadnixlib-21821de828bc1e8af653930c43700da29d7399f9.tar
nixlib-21821de828bc1e8af653930c43700da29d7399f9.tar.gz
nixlib-21821de828bc1e8af653930c43700da29d7399f9.tar.bz2
nixlib-21821de828bc1e8af653930c43700da29d7399f9.tar.lz
nixlib-21821de828bc1e8af653930c43700da29d7399f9.tar.xz
nixlib-21821de828bc1e8af653930c43700da29d7399f9.tar.zst
nixlib-21821de828bc1e8af653930c43700da29d7399f9.zip
spring-boot-cli: 2.1.9->2.2.5
Diffstat (limited to 'pkgs/development/tools/spring-boot-cli')
-rw-r--r--pkgs/development/tools/spring-boot-cli/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/tools/spring-boot-cli/default.nix b/pkgs/development/tools/spring-boot-cli/default.nix
new file mode 100644
index 000000000000..865c655e67f8
--- /dev/null
+++ b/pkgs/development/tools/spring-boot-cli/default.nix
@@ -0,0 +1,47 @@
+{ stdenv, fetchzip, jdk, makeWrapper, installShellFiles, coreutils }:
+
+stdenv.mkDerivation rec {
+  pname = "spring-boot-cli";
+  version = "2.2.6";
+
+  src = fetchzip {
+    url = "https://repo.spring.io/release/org/springframework/boot/${pname}/${version}.RELEASE/${pname}-${version}.RELEASE-bin.zip";
+    sha256 = "1rb21a8nr4mcdsfv3c3xh45kcpdwllhjfb26w9xsdgfh1j4mhb81";
+  };
+
+  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 \
+      --set JAVA_HOME ${jdk} \
+      --set PATH /bin:${coreutils}/bin:${jdk}/bin
+    runHook postInstall
+  '';
+
+  meta = with stdenv.lib; {
+    description = ''
+      CLI which makes it easy to create spring-based applications
+    '';
+    longDescription = ''
+      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
+      little Spring configuration.
+
+      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
+      a command line tool that runs “spring scripts”.
+    '';
+    homepage = "https://spring.io/projects/spring-boot";
+    license = licenses.asl20;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ moaxcp ];
+  };
+}