ipu6-camera-bin: unstable-2023-02-08 -> unstable-2023-10-26
Upgrade to latest commit of upstream main branch: unstable-2023-10-26 Switch to building for all platforms like upstream does now.
This commit is contained in:
parent
8837ce7d66
commit
bfca0a849e
@ -4,26 +4,19 @@
|
||||
, autoPatchelfHook
|
||||
, expat
|
||||
, zlib
|
||||
|
||||
# Pick one of
|
||||
# - ipu6 (Tiger Lake)
|
||||
# - ipu6ep (Alder Lake)
|
||||
, ipuVersion ? "ipu6"
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "${ipuVersion}-camera-bin";
|
||||
version = "unstable-2023-02-08";
|
||||
pname = "ipu6-camera-bin";
|
||||
version = "unstable-2023-10-26";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "intel";
|
||||
repo = "ipu6-camera-bins";
|
||||
rev = "276859fc6de83918a32727d676985ec40f31af2b";
|
||||
hash = "sha256-QnedM2UBbGyd2wIF762Mi+VkDZYtC6MifK4XGGxlUzw=";
|
||||
rev = "af5ba0cb4a763569ac7514635013e9d870040bcf";
|
||||
hash = "sha256-y0pT5M7AKACbquQWLZPYpTPXRC5hipLNL61nhs+cst4=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/${ipuVersion}";
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
stdenv.cc.cc.lib
|
||||
@ -40,13 +33,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
include \
|
||||
$out/
|
||||
|
||||
install -m 0644 -D ../LICENSE $out/share/doc/LICENSE
|
||||
install -m 0644 -D LICENSE $out/share/doc/LICENSE
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
for pcfile in $out/lib/pkgconfig/*.pc; do
|
||||
for pcfile in $out/lib/*/pkgconfig/*.pc; do
|
||||
substituteInPlace $pcfile \
|
||||
--replace 'exec_prefix=/usr' 'exec_prefix=''${prefix}' \
|
||||
--replace 'prefix=/usr' "prefix=$out" \
|
||||
@ -55,17 +48,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
done
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
inherit ipuVersion;
|
||||
};
|
||||
|
||||
meta = let
|
||||
generation = {
|
||||
ipu6 = "Tiger Lake";
|
||||
ipu6ep = "Alder Lake";
|
||||
}.${ipuVersion};
|
||||
in with lib; {
|
||||
description = "${generation} IPU firmware and proprietary image processing libraries";
|
||||
meta = with lib; {
|
||||
description = "IPU firmware and proprietary image processing libraries";
|
||||
homepage = "https://github.com/intel/ipu6-camera-bins";
|
||||
license = licenses.issl;
|
||||
sourceProvenance = with sourceTypes; [
|
||||
|
Loading…
Reference in New Issue
Block a user