git.iko.soy/typeable/nixpkgs
on master help sign in
facetimehd-firmware: 1.43 -> 1.43_4
27bf0d2Graham Christensen
pkgs/os-specific/linux/firmware/facetimehd-firmware/default.nix+21−8
@@ -2,14 +2,28 @@
2
2
3let
3let
4
4
5− version = "1.43";
5+ version = "1.43_4";
6
6
7− dmgRange = "420107885-421933300"; # the whole download is 1.3GB, this cuts it down to 2MB
8
7
8+ # Updated according to https://github.com/patjak/bcwc_pcie/pull/81/files
9+ # and https://github.com/patjak/bcwc_pcie/blob/5a7083bd98b38ef3bd223f7ee531d58f4fb0fe7c/firmware/Makefile#L3-L9
10+ # and https://github.com/patjak/bcwc_pcie/blob/5a7083bd98b38ef3bd223f7ee531d58f4fb0fe7c/firmware/extract-firmware.sh
11+
12+ # From the Makefile:
13+ dmgUrl = "https://support.apple.com/downloads/DL1877/en_US/osxupd10.11.5.dmg";
14+ dmgRange = "205261917-208085450"; # the whole download is 1.3GB, this cuts it down to 2MB
15+ # Notes:
16+ # 1. Be sure to update the sha256 below in the fetch_url
17+ # 2. Be sure to update the homepage in the meta
18+
19+ # Also from the Makefile (OS_DRV, OS_DRV_DIR), but seems to not change:
9 firmwareIn = "./System/Library/Extensions/AppleCameraInterface.kext/Contents/MacOS/AppleCameraInterface";
20 firmwareIn = "./System/Library/Extensions/AppleCameraInterface.kext/Contents/MacOS/AppleCameraInterface";
10 firmwareOut = "firmware.bin";
21 firmwareOut = "firmware.bin";
22+
23+ # The following are from the extract-firmware.sh
11− firmwareOffset = "81920";
24+ firmwareOffset = "81920"; # Variable: firmw_offsets
12− firmwareSize = "603715";
25+ firmwareSize = "603715"; # Variable: firmw_sizes
26+
13
27
14 # separated this here as the script will fail without the 'exit 0'
28 # separated this here as the script will fail without the 'exit 0'
15 unpack = pkgs.writeScriptBin "unpack" ''
29 unpack = pkgs.writeScriptBin "unpack" ''
@@ -22,10 +36,9 @@ in
22stdenv.mkDerivation {
36stdenv.mkDerivation {
23
37
24 name = "facetimehd-firmware-${version}";
38 name = "facetimehd-firmware-${version}";
25−
26 src = fetchurl {
39 src = fetchurl {
27− url = "https://support.apple.com/downloads/DL1849/en_US/osxupd10.11.2.dmg";
40+ url = dmgUrl;
28− sha256 = "1jw6sy9vj27amfak83cs2c7q856y4mk1wix3rl4q10yvd9bl4k9x";
41+ sha256 = "0xqkl4yds0n9fdjvnk0v5mj382q02crry6wm2q7j3ncdqwsv02sv";
29 curlOpts = "-r ${dmgRange}";
42 curlOpts = "-r ${dmgRange}";
30 };
43 };
31
44
@@ -42,7 +55,7 @@ stdenv.mkDerivation {
42
55
43 meta = with stdenv.lib; {
56 meta = with stdenv.lib; {
44 description = "facetimehd firmware";
57 description = "facetimehd firmware";
45− homepage = https://support.apple.com/downloads/DL1849;
58+ homepage = https://support.apple.com/downloads/DL1877;
46 license = licenses.unfree;
59 license = licenses.unfree;
47 maintainers = [ maintainers.womfoo ];
60 maintainers = [ maintainers.womfoo ];
48 platforms = platforms.linux;
61 platforms = platforms.linux;