Skip to content

Commit

Permalink
ipu6-camera-bin: unstable-2023-02-08 -> unstable-2023-10-26
Browse files Browse the repository at this point in the history
Upgrade to latest commit of upstream main branch: unstable-2023-10-26
Switch to building for all platforms like upstream does now.
  • Loading branch information
Princemachiavelli committed Dec 8, 2023
1 parent 8837ce7 commit bfca0a8
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions pkgs/os-specific/linux/firmware/ipu6-camera-bins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" \
Expand All @@ -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; [
Expand Down

0 comments on commit bfca0a8

Please sign in to comment.