From 15332b265d59a2517d63528d88a399f0b777775e Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 31 Dec 2024 15:08:44 +0100 Subject: [PATCH] clazy: 1.12 -> 1.13 Diff: https://github.com/KDE/clazy/compare/v1.12...1.13 Changelog: https://github.com/KDE/clazy/blob/1.13/Changelog --- .../tools/analysis/clazy/default.nix | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/pkgs/development/tools/analysis/clazy/default.nix b/pkgs/development/tools/analysis/clazy/default.nix index b1578dc3f860..ceaa4a8ea65a 100644 --- a/pkgs/development/tools/analysis/clazy/default.nix +++ b/pkgs/development/tools/analysis/clazy/default.nix @@ -5,17 +5,19 @@ llvmPackages, cmake, makeWrapper, + versionCheckHook, + gitUpdater, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "clazy"; - version = "1.12"; + version = "1.13"; src = fetchFromGitHub { owner = "KDE"; repo = "clazy"; - rev = "v${version}"; - sha256 = "sha256-Fex0BAmCZUYcNJriHHt/QPi5IgSH/yhnpGCFFZMMD/g="; + tag = finalAttrs.version; + hash = "sha256-cNckRQ3+9HjJ1xYIDkosEP7K66+G0J3K9wt4OWLokLs="; }; buildInputs = [ @@ -45,12 +47,22 @@ stdenv.mkDerivation rec { --suffix CPLUS_INCLUDE_PATH : "${llvmPackages.clang}/resource-root/include" ''; + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgramArg = [ "--version" ]; + doInstallCheck = true; + + passthru = { + updateScript = gitUpdater { }; + }; + meta = { description = "Qt-oriented static code analyzer based on the Clang framework"; homepage = "https://github.com/KDE/clazy"; + changelog = "https://github.com/KDE/clazy/blob/${finalAttrs.version}/Changelog"; license = lib.licenses.lgpl2Plus; maintainers = [ lib.maintainers.cadkin ]; platforms = lib.platforms.linux; }; - -} +})