mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-23 07:20:17 +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=";
|
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 ({
|
mapviz = rosSuper.mapviz.overrideAttrs ({
|
||||||
patches ? [], ...
|
patches ? [], ...
|
||||||
}: {
|
}: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue