Files
nixpkgs/pkgs/by-name/pc/pcl/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

103 lines
1.9 KiB
Nix

{
lib,
stdenv,
config,
fetchFromGitHub,
# nativeBuildInputs
cmake,
qt6,
pkg-config,
# buildInputs
eigen,
libXt,
libpcap,
libusb1,
llvmPackages,
nanoflann,
# nativeBuildInputs
boost,
flann,
libpng,
libtiff,
qhull,
vtk,
gitUpdater,
cudaSupport ? config.cudaSupport,
cudaPackages,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pcl";
version = "1.15.1";
src = fetchFromGitHub {
owner = "PointCloudLibrary";
repo = "pcl";
tag = "pcl-${finalAttrs.version}";
hash = "sha256-+KyaajJM0I5CAcr8AiOLC4TkGV3Gm73a0/X8LQWFZMI=";
};
strictDeps = true;
# remove attempt to prevent (x86/x87-specific) extended precision use
# when SSE not detected
postPatch = lib.optionalString (!stdenv.hostPlatform.isx86) ''
sed -i '/-ffloat-store/d' cmake/pcl_find_sse.cmake
'';
nativeBuildInputs = [
cmake
qt6.wrapQtAppsHook
pkg-config
]
++ lib.optionals cudaSupport [ cudaPackages.cuda_nvcc ];
buildInputs = [
eigen
libXt
libpcap
qt6.qtbase
libusb1
nanoflann
]
++ lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ];
propagatedBuildInputs = [
boost
flann
libpng
libtiff
qhull
vtk
];
cmakeFlags = [
(lib.cmakeBool "BUILD_CUDA" cudaSupport)
(lib.cmakeBool "BUILD_GPU" cudaSupport)
(lib.cmakeBool "PCL_ENABLE_MARCHNATIVE" false)
(lib.cmakeBool "WITH_CUDA" cudaSupport)
];
passthru.updateScript = gitUpdater {
rev-prefix = "pcl-";
ignoredVersions = "rc";
};
meta = {
homepage = "https://pointclouds.org/";
description = "Open project for 2D/3D image and point cloud processing";
changelog = "https://github.com/PointCloudLibrary/pcl/blob/pcl-${finalAttrs.version}/CHANGES.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
GaetanLepage
usertam
];
platforms = with lib.platforms; linux ++ darwin;
};
})