Merge pull request #224470 from MatthewCroughan/mc/fix-potreeconverter

potreeconverter: fixes and update
This commit is contained in:
tomberek 2023-04-04 22:15:50 -04:00 committed by GitHub
commit c37b7130ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,13 +9,13 @@
stdenv.mkDerivation rec {
pname = "PotreeConverter";
version = "unstable-2022-08-04";
version = "unstable-2023-02-27";
src = fetchFromGitHub {
owner = "potree";
repo = "PotreeConverter";
rev = "758bbac98a662de5e57d2280675e11cc76241688";
sha256 = "sha256-pDdV2/edYhhBWs153hSy1evI3cXD0Xq9nrEsw3JNcH4=";
rev = "af4666fa1090983d8ce7c11dcf49ba19eda90995";
sha256 = "sha256-QYNY+/v6mBEJFiv3i2QS+zqkgWJqeqXSqNoh+ChAiQA=";
};
buildInputs = [
@ -29,8 +29,16 @@ stdenv.mkDerivation rec {
];
patchPhase = ''
runHook prePatch
substituteInPlace ./CMakeLists.txt \
--replace "find_package(TBB REQUIRED)" ""
# prevent inheriting permissions from /nix/store when copying
substituteInPlace Converter/src/main.cpp --replace \
'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());'
runHook postPatch
'';
installPhase = ''
@ -48,6 +56,12 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
fixupPhase = ''
runHook preFixup
ln -s $src/resources $out/bin/resources
runHook postFixup
'';
meta = with lib; {
description = "Create multi res point cloud to use with potree";
homepage = "https://github.com/potree/PotreeConverter";