Merge pull request #189305 from MatthewCroughan/mc/potreeconverter
potreeconverter: init at unstable-2022-08-04
This commit is contained in:
commit
3d309cd8e6
2 changed files with 60 additions and 0 deletions
58
pkgs/applications/graphics/potreeconverter/default.nix
Normal file
58
pkgs/applications/graphics/potreeconverter/default.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, boost
|
||||
, tbb
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "PotreeConverter";
|
||||
version = "unstable-2022-08-04";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "potree";
|
||||
repo = "PotreeConverter";
|
||||
rev = "758bbac98a662de5e57d2280675e11cc76241688";
|
||||
sha256 = "sha256-pDdV2/edYhhBWs153hSy1evI3cXD0Xq9nrEsw3JNcH4=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
boost
|
||||
tbb
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
cmake
|
||||
];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace ./CMakeLists.txt \
|
||||
--replace "find_package(TBB REQUIRED)" ""
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/{bin,lib}
|
||||
mv liblaszip.so $out/lib
|
||||
mv PotreeConverter $out/bin
|
||||
ln -s $out/bin/PotreeConverter $out/bin/potreeconverter
|
||||
|
||||
# Create an empty wrapper, since PotreeConverter segfaults if called via
|
||||
# $PATH rather than absolute path. An empty wrapper forces an absolute path
|
||||
# on each invocation
|
||||
wrapProgram $out/bin/PotreeConverter
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Create multi res point cloud to use with potree";
|
||||
homepage = "https://github.com/potree/PotreeConverter";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ matthewcroughan ];
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
|
@ -2318,6 +2318,8 @@ with pkgs;
|
|||
|
||||
portfolio-filemanager = callPackage ../applications/file-managers/portfolio-filemanager { };
|
||||
|
||||
potreeconverter = callPackage ../applications/graphics/potreeconverter { };
|
||||
|
||||
ranger = callPackage ../applications/file-managers/ranger { };
|
||||
|
||||
sfm = callPackage ../applications/file-managers/sfm { };
|
||||
|
|
Loading…
Reference in a new issue