commit dbc38a38855a2901e27576e94fb16e976f7d30ad parent d8c3e807100211af098b8836db06a66a86eb1e2f Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Fri, 24 Jul 2020 19:58:17 +0300 how-to-use-pvs-studio-free: fix on linux Diffstat:
M | pkgs/development/tools/pvs-studio/how-to-use-pvs-studio-free.nix | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pkgs/development/tools/pvs-studio/how-to-use-pvs-studio-free.nix b/pkgs/development/tools/pvs-studio/how-to-use-pvs-studio-free.nix @@ -10,7 +10,10 @@ stdenv.mkDerivation { nativeBuildInputs = [ cmake ]; - postPatch = stdenv.lib.optionalString stdenv.cc.isClang '' + postPatch = stdenv.lib.optionalString (!stdenv.isDarwin) '' + substituteInPlace CMakeLists.txt \ + --replace "set(CMAKE_INSTALL_PREFIX \"/usr\")" "" + '' + stdenv.lib.optionalString stdenv.cc.isClang '' substituteInPlace CMakeLists.txt \ --replace "stdc++fs" "c++fs" '';