Merge pull request #224470 from MatthewCroughan/mc/fix-potreeconverter
potreeconverter: fixes and update
This commit is contained in:
commit
c37b7130ab
1 changed files with 17 additions and 3 deletions
|
@ -9,13 +9,13 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "PotreeConverter";
|
pname = "PotreeConverter";
|
||||||
version = "unstable-2022-08-04";
|
version = "unstable-2023-02-27";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "potree";
|
owner = "potree";
|
||||||
repo = "PotreeConverter";
|
repo = "PotreeConverter";
|
||||||
rev = "758bbac98a662de5e57d2280675e11cc76241688";
|
rev = "af4666fa1090983d8ce7c11dcf49ba19eda90995";
|
||||||
sha256 = "sha256-pDdV2/edYhhBWs153hSy1evI3cXD0Xq9nrEsw3JNcH4=";
|
sha256 = "sha256-QYNY+/v6mBEJFiv3i2QS+zqkgWJqeqXSqNoh+ChAiQA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -29,8 +29,16 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
|
runHook prePatch
|
||||||
|
|
||||||
substituteInPlace ./CMakeLists.txt \
|
substituteInPlace ./CMakeLists.txt \
|
||||||
--replace "find_package(TBB REQUIRED)" ""
|
--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 = ''
|
installPhase = ''
|
||||||
|
@ -48,6 +56,12 @@ stdenv.mkDerivation rec {
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
fixupPhase = ''
|
||||||
|
runHook preFixup
|
||||||
|
ln -s $src/resources $out/bin/resources
|
||||||
|
runHook postFixup
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Create multi res point cloud to use with potree";
|
description = "Create multi res point cloud to use with potree";
|
||||||
homepage = "https://github.com/potree/PotreeConverter";
|
homepage = "https://github.com/potree/PotreeConverter";
|
||||||
|
|
Loading…
Reference in a new issue