mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
48 lines
1.6 KiB
Nix
48 lines
1.6 KiB
Nix
{ lib, stdenv, fetchzip, jdk, makeWrapper, installShellFiles, coreutils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "spring-boot-cli";
|
|
version = "2.3.2";
|
|
|
|
src = fetchzip {
|
|
url = "https://repo.spring.io/release/org/springframework/boot/${pname}/${version}.RELEASE/${pname}-${version}.RELEASE-bin.zip";
|
|
sha256 = "1zqfnxz57234227rp303iwis0mjkkjkpcqnj9jgw78gykjnqdmmq";
|
|
};
|
|
|
|
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 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 ];
|
|
};
|
|
}
|