da07dbcd42
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/librealsense/versions. These checks were done: - built on NixOS - 0 of 0 passed binary check by having a zero exit code. - 0 of 0 passed binary check by having the new version present in output. - found 2.12.0 with grep in /nix/store/px6ccyxxnyw1xklds9kcw8j2zdls3ays-librealsense-2.12.0 - directory tree listing: https://gist.github.com/e1d2253d92ab8f4bd8aa06a2fd223431 - du listing: https://gist.github.com/bafbf4e97cf5ec6f4471c2fe5f3d785a
33 lines
800 B
Nix
33 lines
800 B
Nix
{ stdenv, fetchFromGitHub, cmake, libusb, ninja, pkgconfig}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "librealsense-${version}";
|
|
version = "2.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "IntelRealSense";
|
|
repo = "librealsense";
|
|
rev = "v${version}";
|
|
sha256 = "1hmrp39x6c8i1l5d0hla0c8k6mf70sdyfjrlnwiqyi2p4s6phyd2";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|