mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-09 17:42:22 +03:00
libcamera: Fix builds for jazzy and rolling
The version for humble is still broken, because its build system depends on Python module imp, which was removed from Python 3.12.
This commit is contained in:
parent
4176d3dd61
commit
24cb63ca28
2 changed files with 36 additions and 0 deletions
|
@ -189,6 +189,24 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
libcamera = rosSuper.libcamera.overrideAttrs ({
|
||||
postPatch ? "",
|
||||
nativeBuildInputs ? [],
|
||||
...
|
||||
}: {
|
||||
# Nixpkgs defaults to enabling all optional features, but we
|
||||
# enable only features for which ROS package.xml declares
|
||||
# dependencies.
|
||||
mesonAutoFeatures = "auto";
|
||||
postPatch = postPatch + ''
|
||||
patchShebangs --build \
|
||||
src/py/libcamera/*.py \
|
||||
utils/codegen/*.py \
|
||||
utils/codegen/ipc/*.py
|
||||
'';
|
||||
nativeBuildInputs = nativeBuildInputs ++ [ self.ninja ];
|
||||
});
|
||||
|
||||
libphidget22 = lib.patchVendorUrl rosSuper.libphidget22 {
|
||||
url = "https://www.phidgets.com/downloads/phidget22/libraries/linux/libphidget22/libphidget22-1.19.20240304.tar.gz";
|
||||
hash = "sha256-GpzGMpQ02s/X/XEcGoozzMjigrbqvAu81bcb7QG+36E=";
|
||||
|
|
|
@ -189,6 +189,24 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
libcamera = rosSuper.libcamera.overrideAttrs ({
|
||||
postPatch ? "",
|
||||
nativeBuildInputs ? [],
|
||||
...
|
||||
}: {
|
||||
# Nixpkgs defaults to enabling all optional features, but we
|
||||
# enable only features for which ROS package.xml declares
|
||||
# dependencies.
|
||||
mesonAutoFeatures = "auto";
|
||||
postPatch = postPatch + ''
|
||||
patchShebangs --build \
|
||||
src/py/libcamera/*.py \
|
||||
utils/codegen/*.py \
|
||||
utils/codegen/ipc/*.py
|
||||
'';
|
||||
nativeBuildInputs = nativeBuildInputs ++ [ self.ninja ];
|
||||
});
|
||||
|
||||
libphidget22 = lib.patchVendorUrl rosSuper.libphidget22 {
|
||||
url = "https://www.phidgets.com/downloads/phidget22/libraries/linux/libphidget22/libphidget22-1.19.20240304.tar.gz";
|
||||
hash = "sha256-GpzGMpQ02s/X/XEcGoozzMjigrbqvAu81bcb7QG+36E=";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue