potreeconverter: stop copy operation from inheriting permissions from store

+9
+9
pkgs/applications/graphics/potreeconverter/default.nix
··· 29 ]; 30 31 patchPhase = '' 32 substituteInPlace ./CMakeLists.txt \ 33 --replace "find_package(TBB REQUIRED)" "" 34 ''; 35 36 installPhase = '' ··· 53 ln -s $src/resources $out/bin/resources 54 runHook postFixup 55 ''; 56 meta = with lib; { 57 description = "Create multi res point cloud to use with potree"; 58 homepage = "https://github.com/potree/PotreeConverter";
··· 29 ]; 30 31 patchPhase = '' 32 + runHook prePatch 33 + 34 substituteInPlace ./CMakeLists.txt \ 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 42 ''; 43 44 installPhase = '' ··· 61 ln -s $src/resources $out/bin/resources 62 runHook postFixup 63 ''; 64 + 65 meta = with lib; { 66 description = "Create multi res point cloud to use with potree"; 67 homepage = "https://github.com/potree/PotreeConverter";