nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 375453f4b591e30c7c72dc87c3727e915b4d336e
parent 90a0b96c7b85fc0f189b7370a47a5bdd8506a010
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Fri, 24 Jul 2020 17:22:43 +0300

Add pvs-studio

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/development/tools/pvs-studio/default.nix | 35+++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -67,6 +67,7 @@ lib.makeScope newScope ( ### DEVELOPMENT / TOOLS gef = callPackage ./development/tools/gef { }; + pvs-studio = callPackage ./development/tools/pvs-studio { }; ### DEVELOPMENT / LIBRARIES diff --git a/pkgs/development/tools/pvs-studio/default.nix b/pkgs/development/tools/pvs-studio/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchurl }: +let + inherit (stdenv.hostPlatform) system; + throwSystem = throw "Unsupported system: ${system}"; + + pname = "pvs-studio"; + version = "7.08.39765.52"; + + suffix = { + x86_64-linux = "x86_64"; + x86_64-darwin = "macos"; + }.${system} or throwSystem; +in +stdenv.mkDerivation { + inherit pname version; + + src = fetchurl { + url = "https://files.viva64.com/pvs-studio-${version}-${suffix}.tgz"; + sha256 = { + x86_64-linux = "04las9ykgrvmjnwnnyfz1m2mlnwf73r8kf8d7igdjqmffih5kxdi"; + x86_64-darwin = "01850inmxi30v9cz94ja0vyb12hq2f1kkfw231qzskhm3h92snfx"; + }.${system} or throwSystem; + }; + + installPhase = "./install.sh $out"; + + meta = with stdenv.lib; { + description = "Static code analyzer for C, C++"; + homepage = "https://www.viva64.com/en/pvs-studio/"; + license = licenses.unfree; + maintainers = [ maintainers.sikmir ]; + platforms = [ "x86_64-linux" "x86_64-darwin" ]; + skip.ci = true; + }; +}