summary refs log tree commit diff
path: root/pkgs/development/libraries/librealsense
diff options
context:
space:
mode:
authorBrian Dawn <brian.t.dawn@gmail.com>2018-05-08 13:53:23 -0500
committerBrian Dawn <brian.t.dawn@gmail.com>2018-05-09 12:58:55 -0500
commit8a9402c207189b3c3604c60d84f8dcbc0e1a9371 (patch)
tree50420551e33928b10fed4a80cd170bf50200ddea /pkgs/development/libraries/librealsense
parent6db7f92cc2af827e8b8b181bf5ed828a1d0f141d (diff)
downloadnixpkgs-8a9402c207189b3c3604c60d84f8dcbc0e1a9371.tar
nixpkgs-8a9402c207189b3c3604c60d84f8dcbc0e1a9371.tar.gz
nixpkgs-8a9402c207189b3c3604c60d84f8dcbc0e1a9371.tar.bz2
nixpkgs-8a9402c207189b3c3604c60d84f8dcbc0e1a9371.tar.lz
nixpkgs-8a9402c207189b3c3604c60d84f8dcbc0e1a9371.tar.xz
nixpkgs-8a9402c207189b3c3604c60d84f8dcbc0e1a9371.tar.zst
nixpkgs-8a9402c207189b3c3604c60d84f8dcbc0e1a9371.zip
librealsense: init at 2.11.0
Diffstat (limited to 'pkgs/development/libraries/librealsense')
-rw-r--r--pkgs/development/libraries/librealsense/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/libraries/librealsense/default.nix b/pkgs/development/libraries/librealsense/default.nix
new file mode 100644
index 00000000000..c61000066f4
--- /dev/null
+++ b/pkgs/development/libraries/librealsense/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchFromGitHub, cmake, libusb, ninja, pkgconfig}:
+
+stdenv.mkDerivation rec {
+  name = "librealsense-${version}";
+  version = "2.11.0";
+
+  src = fetchFromGitHub {
+    owner = "IntelRealSense";
+    repo = "librealsense";
+    rev = "v${version}";
+    sha256 = "11vzs2m6jh9v1xbffr2k541pymmih6g4w641mp8rll8qzqfh89i0";
+  };
+
+  buildInputs = [
+    libusb
+  ];
+
+  nativeBuildInputs = [
+    cmake
+    ninja
+    pkgconfig
+  ];
+
+  cmakeFlags = [ "-DBUILD_EXAMPLES=false" ];
+
+  meta = with stdenv.lib; {
+    description = "A cross-platform library for IntelĀ® RealSenseā„¢ depth cameras (D400 series and the SR300)";
+    homepage = https://github.com/IntelRealSense/librealsense;
+    license = licenses.asl20;
+    maintainers = with maintainers; [ brian-dawn ];
+    platforms = platforms.unix;
+  };
+}