Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchzip, jdk, makeWrapper, installShellFiles, coreutils }: 2 3stdenv.mkDerivation rec { 4 pname = "spring-boot-cli"; 5 version = "2.3.2"; 6 7 src = fetchzip { 8 url = "https://repo.spring.io/release/org/springframework/boot/${pname}/${version}.RELEASE/${pname}-${version}.RELEASE-bin.zip"; 9 sha256 = "1zqfnxz57234227rp303iwis0mjkkjkpcqnj9jgw78gykjnqdmmq"; 10 }; 11 12 nativeBuildInputs = [ makeWrapper installShellFiles ]; 13 14 installPhase = '' 15 runHook preInstall 16 rm bin/spring.bat 17 installShellCompletion --bash shell-completion/bash/spring 18 installShellCompletion --zsh shell-completion/zsh/_spring 19 rm -r shell-completion 20 cp -r . $out 21 wrapProgram $out/bin/spring \ 22 --set JAVA_HOME ${jdk} \ 23 --set PATH /bin:${coreutils}/bin:${jdk}/bin 24 runHook postInstall 25 ''; 26 27 meta = with lib; { 28 description = '' 29 CLI which makes it easy to create spring-based applications 30 ''; 31 longDescription = '' 32 Spring Boot makes it easy to create stand-alone, production-grade 33 Spring-based Applications that you can run. We take an opinionated view 34 of the Spring platform and third-party libraries, so that you can get 35 started with minimum fuss. Most Spring Boot applications need very 36 little Spring configuration. 37 38 You can use Spring Boot to create Java applications that can be started 39 by using java -jar or more traditional war deployments. We also provide 40 a command line tool that runs spring scripts. 41 ''; 42 homepage = "https://spring.io/projects/spring-boot"; 43 sourceProvenance = with sourceTypes; [ binaryBytecode ]; 44 license = licenses.asl20; 45 platforms = platforms.all; 46 maintainers = with maintainers; [ moaxcp ]; 47 }; 48}