From acbf220e6f6506703e8da29b58820a5498952ef9 Mon Sep 17 00:00:00 2001 From: liberodark Date: Thu, 30 Jan 2025 09:02:18 +0100 Subject: [PATCH] juce: 8.0.4 -> 8.0.6 --- pkgs/development/misc/juce/default.nix | 29 +++++++++++++++++++------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/pkgs/development/misc/juce/default.nix b/pkgs/development/misc/juce/default.nix index fc14aeeb3dc2..8bc6212a83da 100644 --- a/pkgs/development/misc/juce/default.nix +++ b/pkgs/development/misc/juce/default.nix @@ -28,17 +28,19 @@ libXtst, sqlite, fontconfig, + versionCheckHook, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "juce"; - version = "8.0.4"; + version = "8.0.6"; src = fetchFromGitHub { owner = "juce-framework"; repo = "juce"; - rev = finalAttrs.version; - hash = "sha256-iAueT+yHwUUHOzqfK5zXEZQ0GgOKJ9q9TyRrVfWdewc="; + tag = finalAttrs.version; + hash = "sha256-uwZVBrvb5O9LEh00y93UeEu4u4rd+tLRCdQdxsMpXNg="; }; patches = [ @@ -80,16 +82,27 @@ stdenv.mkDerivation (finalAttrs: { propagatedBuildInputs = [ fontconfig ]; - meta = with lib; { + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgram = "${placeholder "out"}/bin/juceaide"; + versionCheckProgramArg = [ "version" ]; + doInstallCheck = true; + + passthru = { + updateScript = nix-update-script { }; + }; + + meta = { description = "Cross-platform C++ application framework"; - mainProgram = "juceaide"; longDescription = "Open-source cross-platform C++ application framework for creating desktop and mobile applications, including VST, VST3, AU, AUv3, AAX and LV2 audio plug-ins"; homepage = "https://juce.com/"; changelog = "https://github.com/juce-framework/JUCE/blob/${finalAttrs.version}/CHANGE_LIST.md"; - license = with licenses; [ + license = with lib.licenses; [ agpl3Only # Or alternatively the JUCE license, but that would not be included in nixpkgs then ]; - maintainers = with maintainers; [ kashw2 ]; - platforms = platforms.all; + maintainers = with lib.maintainers; [ kashw2 ]; + platforms = lib.platforms.all; + mainProgram = "juceaide"; }; })