mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 21:43:32 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
77 lines
2.3 KiB
Nix
77 lines
2.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchzip,
|
|
jdk,
|
|
makeWrapper,
|
|
installShellFiles,
|
|
coreutils,
|
|
testers,
|
|
gitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "spring-boot-cli";
|
|
version = "3.4.0";
|
|
|
|
src = fetchzip {
|
|
url = "mirror://maven/org/springframework/boot/spring-boot-cli/${finalAttrs.version}/spring-boot-cli-${finalAttrs.version}-bin.zip";
|
|
hash = "sha256-jmqmWlp40DE/CWzPEMfApb3OTDDb0upcePCHj1+yTs4=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
passthru = {
|
|
tests.version = testers.testVersion {
|
|
package = finalAttrs.finalPackage;
|
|
command = "${lib.getExe finalAttrs.finalPackage} --version";
|
|
version = "v${finalAttrs.version}";
|
|
};
|
|
updateScript = gitUpdater {
|
|
url = "https://github.com/spring-projects/spring-boot";
|
|
ignoredVersions = ".*-(RC|M).*";
|
|
rev-prefix = "v";
|
|
};
|
|
};
|
|
|
|
meta = with 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";
|
|
changelog = "https://github.com/spring-projects/spring-boot/releases/tag/v${finalAttrs.version}";
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
mainProgram = "spring";
|
|
license = licenses.asl20;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ moaxcp ];
|
|
};
|
|
})
|