Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e9cd8a2d60f0
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f5cc5ce8d60f
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Oct 11, 2019

  1. spring-boot: init at 2.1.9

    moaxcp committed Oct 11, 2019
    Copy the full SHA
    3211345 View commit details

Commits on Oct 12, 2019

  1. Merge pull request #70282 from moaxcp/spring-boot

    spring-boot: init at 2.1.9
    c0bw3b authored Oct 12, 2019
    Copy the full SHA
    f5cc5ce View commit details
Showing with 48 additions and 0 deletions.
  1. +46 −0 pkgs/development/tools/spring-boot/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
46 changes: 46 additions & 0 deletions pkgs/development/tools/spring-boot/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ stdenv, fetchzip, jdk, makeWrapper, installShellFiles }:

stdenv.mkDerivation rec {
pname = "spring-boot";
version = "2.1.9";

src = fetchzip {
url = "https://repo.spring.io/release/org/springframework/boot/${pname}-cli/${version}.RELEASE/${pname}-cli-${version}.RELEASE-bin.zip";
sha256 = "03iphh5l9w9sizksidkv217qnqx3nh1zpw6kdjnn40j3mlabfb7j";
};

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 \
--prefix JAVA_HOME : ${jdk}
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -15342,6 +15342,8 @@ in

spawn_fcgi = callPackage ../servers/http/spawn-fcgi { };

spring-boot = callPackage ../development/tools/spring-boot { };

squid = callPackage ../servers/squid { };

sslh = callPackage ../servers/sslh { };