libcamera: Fix build with sphinx>=7.0

This commit is contained in:
Martin Weinelt 2023-10-27 12:47:20 +02:00
parent 6515b811b8
commit d73f0a1175
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,5 +1,6 @@
{ stdenv { stdenv
, fetchgit , fetchgit
, fetchpatch
, lib , lib
, meson , meson
, ninja , ninja
@ -31,6 +32,15 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "doc" ]; outputs = [ "out" "dev" "doc" ];
patches = [
(fetchpatch {
# https://git.libcamera.org/libcamera/libcamera.git/commit/?id=6cb92b523bd60bd7718df134cc5b1eff51cf42e5
name = "libcamera-sphinx7.0-compat.patch";
url = "https://git.libcamera.org/libcamera/libcamera.git/patch/?id=6cb92b523bd60bd7718df134cc5b1eff51cf42e5";
hash = "sha256-gs0EiT3gWlmRjDim+o2C0VmnoWqEouP5pNTD4XbNSdE=";
})
];
postPatch = '' postPatch = ''
patchShebangs utils/ patchShebangs utils/
''; '';