-
Notifications
You must be signed in to change notification settings - Fork 0
/
ivsc-firmware.nix
31 lines (27 loc) · 1.02 KB
/
ivsc-firmware.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, lib, ivsc-firmware-src, ... }: stdenv.mkDerivation {
name = "ivsc-firmware";
version = "0.0.0";
src = ivsc-firmware-src;
# The driver hardcodes the path without xz, so disable compression for now
passthru.compressFirmware = false;
installPhase = ''
# The files need to be moved such that
# ./firmware/fw.bin -> /lib/firmware/vsc/soc_a1_prod/fw_a1_prod.bin
mkdir -p $out/lib/firmware/vsc/soc_a1_prod/
for f in ./firmware/*.bin; do
newName="$(basename $f)"
newName="''${newName%%.bin}_a1_prod.bin"
mv "$f" "$out/lib/firmware/vsc/soc_a1_prod/$newName"
done
'';
meta = with lib; {
maintainers = [ maintainers.mitame ];
license = [ licenses.unfreeRedistributableFirmware ];
platforms = [ "i686-linux" "x86_64-linux" ];
description = "firmware binaries for the ivsc chipset";
homepage = "https://github.com/intel/ivsc-firmware";
longDescription = ''
Firmware for the Intel Vision Sensing Controller(IVSC) on Intel Alder Lake platforms
'';
};
}