spring-boot-cli: add passthru.{updateScript,tests.version}

+17 -3
+17 -3
pkgs/development/tools/spring-boot-cli/default.nix
··· 1 - { lib, stdenv, fetchzip, jdk, makeWrapper, installShellFiles, coreutils }: 1 + { lib, stdenv, fetchzip, jdk, makeWrapper, installShellFiles, coreutils, testers, gitUpdater }: 2 2 3 - stdenv.mkDerivation rec { 3 + stdenv.mkDerivation (finalAttrs: { 4 4 pname = "spring-boot-cli"; 5 5 version = "3.1.5"; 6 6 ··· 24 24 runHook postInstall 25 25 ''; 26 26 27 + passthru = { 28 + tests.version = testers.testVersion { 29 + package = finalAttrs.finalPackage; 30 + command = "${lib.getExe finalAttrs.finalPackage} --version"; 31 + version = "v${finalAttrs.version}"; 32 + }; 33 + updateScript = gitUpdater { 34 + url = "https://github.com/spring-projects/spring-boot"; 35 + ignoredVersions = ".*-(RC|M).*"; 36 + rev-prefix = "v"; 37 + }; 38 + }; 39 + 27 40 meta = with lib; { 28 41 description = '' 29 42 CLI which makes it easy to create spring-based applications ··· 40 53 a command line tool that runs “spring scripts”. 41 54 ''; 42 55 homepage = "https://spring.io/projects/spring-boot"; 56 + changelog = "https://github.com/spring-projects/spring-boot/releases/tag/v${finalAttrs.version}"; 43 57 sourceProvenance = with sourceTypes; [ binaryBytecode ]; 44 58 license = licenses.asl20; 45 59 platforms = platforms.all; 46 60 maintainers = with maintainers; [ moaxcp ]; 47 61 }; 48 - } 62 + })