Loading pkgs/development/libraries/librealsense/default.nix +12 −9 Original line number Diff line number Diff line Loading @@ -2,9 +2,9 @@ , config , lib , fetchFromGitHub , fetchpatch , cmake , libusb1 , nlohmann_json , ninja , pkg-config , gcc Loading @@ -23,7 +23,7 @@ assert enablePython -> pythonPackages != null; stdenv.mkDerivation rec { pname = "librealsense"; version = "2.54.2"; version = "2.55.1"; outputs = [ "out" "dev" ]; Loading @@ -31,12 +31,13 @@ stdenv.mkDerivation rec { owner = "IntelRealSense"; repo = pname; rev = "v${version}"; sha256 = "sha256-EbnIHnsUgsqN/SVv4m9H7K8gfwni+u82+M55QBstAGI="; sha256 = "sha256-MNHvfWk58WRtu6Xysfvn+lx8J1+HlNw5AmmgaTAzuok="; }; buildInputs = [ libusb1 gcc.cc.lib nlohmann_json ] ++ lib.optional cudaSupport cudaPackages.cudatoolkit ++ lib.optionals enablePython (with pythonPackages; [ python pybind11 ]) ++ lib.optionals enableGUI [ mesa gtk3 glfw libGLU curl ]; Loading @@ -44,14 +45,16 @@ stdenv.mkDerivation rec { patches = [ ./py_pybind11_no_external_download.patch ./install-presets.patch # https://github.com/IntelRealSense/librealsense/pull/11917 (fetchpatch { name = "fix-gcc13-missing-cstdint.patch"; url = "https://github.com/IntelRealSense/librealsense/commit/b59b13671658910fc453a4a6bbd61f13ba6e83cc.patch"; hash = "sha256-zaW8HG8rfsApI5S/3x+x9Fx8xhyTIPNn/fJVFtkmlEA="; }) ]; postPatch = '' # use nixpkgs nlohmann_json instead of fetching it substituteInPlace third-party/CMakeLists.txt \ --replace-fail \ 'include(CMake/external_json.cmake)' \ 'find_package(nlohmann_json 3.11.3 REQUIRED)' ''; nativeBuildInputs = [ cmake ninja Loading Loading
pkgs/development/libraries/librealsense/default.nix +12 −9 Original line number Diff line number Diff line Loading @@ -2,9 +2,9 @@ , config , lib , fetchFromGitHub , fetchpatch , cmake , libusb1 , nlohmann_json , ninja , pkg-config , gcc Loading @@ -23,7 +23,7 @@ assert enablePython -> pythonPackages != null; stdenv.mkDerivation rec { pname = "librealsense"; version = "2.54.2"; version = "2.55.1"; outputs = [ "out" "dev" ]; Loading @@ -31,12 +31,13 @@ stdenv.mkDerivation rec { owner = "IntelRealSense"; repo = pname; rev = "v${version}"; sha256 = "sha256-EbnIHnsUgsqN/SVv4m9H7K8gfwni+u82+M55QBstAGI="; sha256 = "sha256-MNHvfWk58WRtu6Xysfvn+lx8J1+HlNw5AmmgaTAzuok="; }; buildInputs = [ libusb1 gcc.cc.lib nlohmann_json ] ++ lib.optional cudaSupport cudaPackages.cudatoolkit ++ lib.optionals enablePython (with pythonPackages; [ python pybind11 ]) ++ lib.optionals enableGUI [ mesa gtk3 glfw libGLU curl ]; Loading @@ -44,14 +45,16 @@ stdenv.mkDerivation rec { patches = [ ./py_pybind11_no_external_download.patch ./install-presets.patch # https://github.com/IntelRealSense/librealsense/pull/11917 (fetchpatch { name = "fix-gcc13-missing-cstdint.patch"; url = "https://github.com/IntelRealSense/librealsense/commit/b59b13671658910fc453a4a6bbd61f13ba6e83cc.patch"; hash = "sha256-zaW8HG8rfsApI5S/3x+x9Fx8xhyTIPNn/fJVFtkmlEA="; }) ]; postPatch = '' # use nixpkgs nlohmann_json instead of fetching it substituteInPlace third-party/CMakeLists.txt \ --replace-fail \ 'include(CMake/external_json.cmake)' \ 'find_package(nlohmann_json 3.11.3 REQUIRED)' ''; nativeBuildInputs = [ cmake ninja Loading