Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoPatchelfHook,
|
|
expat,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ipu6-camera-bins";
|
|
version = "unstable-2025-06-27";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "ipu6-camera-bins";
|
|
owner = "intel";
|
|
rev = "30e87664829782811a765b0ca9eea3a878a7ff29";
|
|
hash = "sha256-YPPzuK13o2jnRSB3ORoMUU5E9/IifKVSetAqZHRofhw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoPatchelfHook
|
|
(lib.getLib stdenv.cc.cc)
|
|
expat
|
|
zlib
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out
|
|
cp --no-preserve=mode --recursive \
|
|
lib \
|
|
include \
|
|
$out/
|
|
|
|
# There is no LICENSE file in the src
|
|
# install -m 0644 -D LICENSE $out/share/doc/LICENSE
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
postFixup = ''
|
|
for lib in $out/lib/lib*.so.*; do \
|
|
lib=''${lib##*/}; \
|
|
ln -s $lib $out/lib/''${lib%.*}; \
|
|
done
|
|
|
|
for pcfile in $out/lib/pkgconfig/*.pc; do
|
|
substituteInPlace $pcfile \
|
|
--replace 'prefix=/usr' "prefix=$out"
|
|
done
|
|
'';
|
|
|
|
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; [
|
|
binaryFirmware
|
|
];
|
|
maintainers = [ ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
})
|