|
28 | 28 | libXtst, |
29 | 29 | sqlite, |
30 | 30 | fontconfig, |
| 31 | + versionCheckHook, |
| 32 | + nix-update-script, |
31 | 33 | }: |
32 | 34 |
|
33 | 35 | stdenv.mkDerivation (finalAttrs: { |
34 | 36 | pname = "juce"; |
35 | | - version = "8.0.4"; |
| 37 | + version = "8.0.6"; |
36 | 38 |
|
37 | 39 | src = fetchFromGitHub { |
38 | 40 | owner = "juce-framework"; |
39 | 41 | repo = "juce"; |
40 | | - rev = finalAttrs.version; |
41 | | - hash = "sha256-iAueT+yHwUUHOzqfK5zXEZQ0GgOKJ9q9TyRrVfWdewc="; |
| 42 | + tag = finalAttrs.version; |
| 43 | + hash = "sha256-uwZVBrvb5O9LEh00y93UeEu4u4rd+tLRCdQdxsMpXNg="; |
42 | 44 | }; |
43 | 45 |
|
44 | 46 | patches = [ |
@@ -80,16 +82,27 @@ stdenv.mkDerivation (finalAttrs: { |
80 | 82 |
|
81 | 83 | propagatedBuildInputs = [ fontconfig ]; |
82 | 84 |
|
83 | | - meta = with lib; { |
| 85 | + nativeInstallCheckInputs = [ |
| 86 | + versionCheckHook |
| 87 | + ]; |
| 88 | + versionCheckProgram = "${placeholder "out"}/bin/juceaide"; |
| 89 | + versionCheckProgramArg = [ "version" ]; |
| 90 | + doInstallCheck = true; |
| 91 | + |
| 92 | + passthru = { |
| 93 | + updateScript = nix-update-script { }; |
| 94 | + }; |
| 95 | + |
| 96 | + meta = { |
84 | 97 | description = "Cross-platform C++ application framework"; |
85 | | - mainProgram = "juceaide"; |
86 | 98 | 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"; |
87 | 99 | homepage = "https://juce.com/"; |
88 | 100 | changelog = "https://github.com/juce-framework/JUCE/blob/${finalAttrs.version}/CHANGE_LIST.md"; |
89 | | - license = with licenses; [ |
| 101 | + license = with lib.licenses; [ |
90 | 102 | agpl3Only # Or alternatively the JUCE license, but that would not be included in nixpkgs then |
91 | 103 | ]; |
92 | | - maintainers = with maintainers; [ kashw2 ]; |
93 | | - platforms = platforms.all; |
| 104 | + maintainers = with lib.maintainers; [ kashw2 ]; |
| 105 | + platforms = lib.platforms.all; |
| 106 | + mainProgram = "juceaide"; |
94 | 107 | }; |
95 | 108 | }) |
0 commit comments