blob: 8f6fbf42434f96840df4f7caf5be222c029a67fe (
plain)
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
32
|
{
stdenvNoCC,
fetchurl,
lib
}:
let commit = "61beaa4eb1ad87ad067cfbe123fbcd0a0cf01246";
in
stdenvNoCC.mkDerivation {
name = "pine64-ov5640-firmware";
version = "0_git20201028";
src = fetchurl {
url = "https://github.com/pmsourcedump/ov5640/blob/${commit}/ov5640_af.bin?raw=true";
hash = "sha512-TgwFD0g+LmxFhIdKcOkHSPit+2Esju84uHfWnYCF2+KfOuNrucKZ3Fo5hiI9gr1R1O78qpcJvPvKWiSQmM+w8A==";
};
dontUnpack = true;
installPhase = ''
mkdir -p $out/lib/firmware
cp -a $src $out/lib/firmware/ov5640_af.bin
'';
dontFixup = true;
meta = {
description = "Firmware for the ov5640 autofocus";
maintainers = [];
license = lib.licenses.unfreeRedistributableFirmware;
platforms = lib.platforms.linux;
sourceProvenance = with lib.sourceTypes; [binaryFirmware];
};
}
|