Commit 7b17c672 authored by betaboon's avatar betaboon
Browse files

ipu6-camera-hal: 2023-01-09 -> 2023-02-08

parent 62c69e9f
Loading
Loading
Loading
Loading
+16 −12
Original line number Diff line number Diff line
@@ -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";