From 7b17c6722d226ff26794155a057ac0d44eeb4075 Mon Sep 17 00:00:00 2001 From: betaboon Date: Sun, 2 Apr 2023 20:27:48 +0200 Subject: [PATCH] ipu6-camera-hal: 2023-01-09 -> 2023-02-08 --- .../libraries/ipu6-camera-hal/default.nix | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/pkgs/development/libraries/ipu6-camera-hal/default.nix b/pkgs/development/libraries/ipu6-camera-hal/default.nix index d8ac28f4ce6b..17e5ed482196 100644 --- a/pkgs/development/libraries/ipu6-camera-hal/default.nix +++ b/pkgs/development/libraries/ipu6-camera-hal/default.nix @@ -14,14 +14,14 @@ }: stdenv.mkDerivation { - pname = "ipu6-camera-hal"; - version = "unstable-2023-01-09"; + pname = "${ipu6-camera-bin.ipuVersion}-camera-hal"; + version = "unstable-2023-02-08"; src = fetchFromGitHub { owner = "intel"; repo = "ipu6-camera-hal"; - rev = "37292891c73367d22ba1fc96ea9b6e4546903037"; - hash = "sha256-dJvTZt85rt5/v2JXOsfbSY933qffyXW74L0nWdIlqug="; + rev = "884b81aae0ea19a974eb8ccdaeef93038136bdd4"; + hash = "sha256-AePL7IqoOhlxhfPRLpCman5DNh3wYS4MUcLgmgBUcCM="; }; nativeBuildInputs = [ @@ -52,16 +52,20 @@ stdenv.mkDerivation { gst_all_1.gst-plugins-base ]; - preFixup = '' - ls -lah $out/lib/pkgconfig/ - sed -Ei \ - -e "s,^prefix=.*,prefix=$out," \ - -e "s,^exec_prefix=.*,exec_prefix=''${prefix}," \ - -e "s,^libdir=.*,libdir=''${prefix}/lib," \ - -e "s,^includedir=.*,includedir=''${prefix}/include/libcamhal," \ - $out/lib/pkgconfig/libcamhal.pc + postPatch = '' + substituteInPlace src/platformdata/PlatformData.h \ + --replace '/usr/share/' "${placeholder "out"}/share/" ''; + postFixup = '' + substituteInPlace $out/lib/pkgconfig/libcamhal.pc \ + --replace 'prefix=/usr' "prefix=$out" + ''; + + passthru = { + inherit (ipu6-camera-bin) ipuVersion; + }; + meta = with lib; { description = "HAL for processing of images in userspace"; homepage = "https://github.com/intel/ipu6-camera-hal";