mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-11 10:14:50 +03:00
Get lvr2 to compile
This commit is contained in:
parent
db05cec6d7
commit
e988a6925f
1 changed files with 15 additions and 0 deletions
|
@ -26,6 +26,21 @@ rosSelf: rosSuper: with rosSelf.lib; {
|
|||
hash = "sha256-GpzGMpQ02s/X/XEcGoozzMjigrbqvAu81bcb7QG+36E=";
|
||||
};
|
||||
|
||||
lvr2 = rosSuper.lvr2.overrideAttrs ({
|
||||
nativeBuildInputs ? [], buildInputs ? [], postPatch ? "", ...
|
||||
} : {
|
||||
nativeBuildInputs = nativeBuildInputs ++ [ self.pkg-config ];
|
||||
buildInputs = buildInputs ++ (with self; [ libtiff lz4 libGLU ]);
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-fpermissive";
|
||||
|
||||
postPatch = with self.lib; postPatch + ''
|
||||
substituteInPlace CMakeModules/FindLz4.cmake \
|
||||
--replace-fail "set(LZ4_SEARCH_HEADER_PATHS" "set(LZ4_SEARCH_HEADER_PATHS ${getDev self.lz4}/include" \
|
||||
--replace-fail "set(LZ4_SEARCH_LIB_PATH" "set(LZ4_SEARCH_LIB_PATH ${getLib self.lz4}/lib"
|
||||
'';
|
||||
});
|
||||
|
||||
mapviz = rosSuper.mapviz.overrideAttrs ({
|
||||
patches ? [], ...
|
||||
}: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue