mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
ipu6-camera-hal: 2023-01-09 -> 2023-02-08
This commit is contained in:
parent
62c69e9f3a
commit
7b17c6722d
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue