default.nix (829B)
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 setupHook = ./setup-hook.sh; 28 29 meta = { 30 description = "How to use PVS-Studio for Free?"; 31 homepage = "https://pvs-studio.com/en/blog/posts/0457/"; 32 license = lib.licenses.asl20; 33 maintainers = [ lib.maintainers.sikmir ]; 34 platforms = lib.platforms.unix; 35 }; 36 })