2023-02-14 16:03:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "ivsc-firmware";
|
2024-10-08 10:04:07 +00:00
|
|
|
version = "unstable-2024-06-14";
|
2023-02-14 16:03:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intel";
|
|
|
|
repo = "ivsc-firmware";
|
2024-10-08 10:04:07 +00:00
|
|
|
rev = "74a01d1208a352ed85d76f959c68200af4ead918";
|
|
|
|
hash = "sha256-kHYfeftMtoOsOtVN6+XoDMDHP7uTEztbvjQLpCnKCh0=";
|
2023-02-14 16:03:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/lib/firmware/vsc
|
|
|
|
cp --no-preserve=mode --recursive ./firmware/* $out/lib/firmware/vsc/
|
|
|
|
install -D ./LICENSE $out/share/doc
|
|
|
|
|
2024-03-14 18:07:48 +00:00
|
|
|
mkdir -p $out/lib/firmware/vsc/soc_a1_prod
|
|
|
|
# According to Intel's documentation for prod platform the a1_prod postfix is need it (https://github.com/intel/ivsc-firmware)
|
|
|
|
# This fixes ipu6 webcams
|
|
|
|
for file in $out/lib/firmware/vsc/*.bin; do
|
|
|
|
ln -sf "$file" "$out/lib/firmware/vsc/soc_a1_prod/$(basename "$file" .bin)_a1_prod.bin"
|
|
|
|
done
|
|
|
|
|
2023-02-14 16:03:57 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Firmware binaries for the Intel Vision Sensing Controller";
|
|
|
|
homepage = "https://github.com/intel/ivsc-firmware";
|
|
|
|
license = licenses.issl;
|
|
|
|
sourceProvenance = with sourceTypes; [
|
|
|
|
binaryFirmware
|
|
|
|
];
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2023-02-14 16:03:57 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|