potreeconverter: stop copy operation from inheriting permissions from store

+9
+9
pkgs/applications/graphics/potreeconverter/default.nix
··· 29 29 ]; 30 30 31 31 patchPhase = '' 32 + runHook prePatch 33 + 32 34 substituteInPlace ./CMakeLists.txt \ 33 35 --replace "find_package(TBB REQUIRED)" "" 36 + 37 + # prevent inheriting permissions from /nix/store when copying 38 + substituteInPlace Converter/src/main.cpp --replace \ 39 + 'fs::copy(templateDir, pagedir, fs::copy_options::overwrite_existing | fs::copy_options::recursive)' 'string cmd = "cp --no-preserve=mode -r " + templateDir + " " + pagedir; system(cmd.c_str());' 40 + 41 + runHook postPatch 34 42 ''; 35 43 36 44 installPhase = '' ··· 53 61 ln -s $src/resources $out/bin/resources 54 62 runHook postFixup 55 63 ''; 64 + 56 65 meta = with lib; { 57 66 description = "Create multi res point cloud to use with potree"; 58 67 homepage = "https://github.com/potree/PotreeConverter";