nur-packages

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

how-to-use-pvs-studio-free.nix (797B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchfromgh,
      5   cmake,
      6 }:
      7 
      8 stdenv.mkDerivation (finalAttrs: {
      9   pname = "how-to-use-pvs-studio-free";
     10   version = "7.34";
     11 
     12   src = fetchfromgh {
     13     owner = "viva64";
     14     repo = "how-to-use-pvs-studio-free";
     15     tag = finalAttrs.version;
     16     hash = "sha256-yK2Z7mUaBfKvRl9pm57nH6BIhgFx48rBlwWmLHwiWtY=";
     17     name = "how-to-use-pvs-studio-free_Source_code.tar.gz";
     18   };
     19 
     20   postPatch = ''
     21     substituteInPlace CMakeLists.txt \
     22       --replace-fail "set(CMAKE_INSTALL_PREFIX \"/usr\")" ""
     23   '';
     24 
     25   nativeBuildInputs = [ cmake ];
     26 
     27   meta = {
     28     description = "How to use PVS-Studio for Free?";
     29     homepage = "https://pvs-studio.com/en/blog/posts/0457/";
     30     license = lib.licenses.asl20;
     31     maintainers = [ lib.maintainers.sikmir ];
     32     platforms = lib.platforms.unix;
     33   };
     34 })