Install preset into $out/share
This commit is contained in:
parent
0a25fb8880
commit
a52660a52d
2 changed files with 14 additions and 0 deletions
|
@ -43,6 +43,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./py_pybind11_no_external_download.patch
|
./py_pybind11_no_external_download.patch
|
||||||
|
./install-presets.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/tools/realsense-viewer/CMakeLists.txt b/tools/realsense-viewer/CMakeLists.txt
|
||||||
|
index 44be6278f..1a4531dff 100644
|
||||||
|
--- a/tools/realsense-viewer/CMakeLists.txt
|
||||||
|
+++ b/tools/realsense-viewer/CMakeLists.txt
|
||||||
|
@@ -253,7 +253,7 @@ install(
|
||||||
|
)
|
||||||
|
#https://cmake.org/cmake/help/latest/command/install.html
|
||||||
|
install(DIRECTORY presets/
|
||||||
|
- DESTINATION $ENV{HOME}/Documents/librealsense2/presets
|
||||||
|
+ DESTINATION $ENV{out}/share/librealsense2/presets
|
||||||
|
FILES_MATCHING PATTERN "*.preset"
|
||||||
|
)
|
||||||
|
endif()
|
Loading…
Reference in a new issue