uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
72
pkgs/development/libraries/pcl/default.nix
Normal file
72
pkgs/development/libraries/pcl/default.nix
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, wrapQtAppsHook
|
||||
, cmake
|
||||
, qhull
|
||||
, flann
|
||||
, boost
|
||||
, vtk
|
||||
, eigen
|
||||
, pkg-config
|
||||
, qtbase
|
||||
, libusb1
|
||||
, libpcap
|
||||
, libtiff
|
||||
, libXt
|
||||
, libpng
|
||||
, Cocoa
|
||||
, AGL
|
||||
, OpenGL
|
||||
, withCuda ? false, cudatoolkit
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pcl";
|
||||
version = "1.12.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PointCloudLibrary";
|
||||
repo = "pcl";
|
||||
rev = "${pname}-${version}";
|
||||
sha256 = "0jhvciaw43y6iqqk7hyxnfhn1b4bsw5fpy04s01r5pkcsjjbdbqc";
|
||||
};
|
||||
|
||||
# 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 = [ pkg-config cmake wrapQtAppsHook ];
|
||||
buildInputs = [
|
||||
eigen
|
||||
libusb1
|
||||
libpcap
|
||||
qtbase
|
||||
libXt
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin [ Cocoa AGL ]
|
||||
++ lib.optionals withCuda [ cudatoolkit ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
boost
|
||||
flann
|
||||
libpng
|
||||
libtiff
|
||||
qhull
|
||||
vtk
|
||||
];
|
||||
|
||||
cmakeFlags = lib.optionals stdenv.isDarwin [
|
||||
"-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks"
|
||||
] ++ lib.optionals withCuda [ "-DWITH_CUDA=true" ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://pointclouds.org/";
|
||||
description = "Open project for 2D/3D image and point cloud processing";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ viric ];
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue