10 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
18 sha256 = "sha256-kcl4dUg84fNdizKUS4kpvIKFfajtTRdz+MYUbKcMFvg=";
32 wrapProgram $out/bin/clazy \
33 --suffix PATH : "${llvmPackages.clang}/bin/" \
34 --suffix CPATH : "$(<${llvmPackages.clang}/nix-support/libc-cflags)" \
35 --suffix CPATH : "${llvmPackages.clang}/resource-root/include" \
36 --suffix CPLUS_INCLUDE_PATH : "$(<${llvmPackages.clang}/nix-support/libcxx-cxxflags)" \
37 --suffix CPLUS_INCLUDE_PATH : "$(<${llvmPackages.clang}/nix-support/libc-cflags)" \
38 --suffix CPLUS_INCLUDE_PATH : "${llvmPackages.clang}/resource-root/include"
40 wrapProgram $out/bin/clazy-standalone \
41 --suffix CPATH : "$(<${llvmPackages.clang}/nix-support/libc-cflags)" \
42 --suffix CPATH : "${llvmPackages.clang}/resource-root/include" \
43 --suffix CPLUS_INCLUDE_PATH : "$(<${llvmPackages.clang}/nix-support/libcxx-cxxflags)" \
44 --suffix CPLUS_INCLUDE_PATH : "$(<${llvmPackages.clang}/nix-support/libc-cflags)" \
45 --suffix CPLUS_INCLUDE_PATH : "${llvmPackages.clang}/resource-root/include"
49 description = "Qt-oriented static code analyzer based on the Clang framework";
50 homepage = "https://github.com/KDE/clazy";
51 license = lib.licenses.lgpl2Plus;
52 maintainers = [ lib.maintainers.cadkin ];
53 platforms = lib.platforms.linux;