@@ -2,14 +2,28 @@
22
33let
44
5− version = "1.43";
5+ version = "1.43_4";
66
7− dmgRange = "420107885-421933300"; # the whole download is 1.3GB, this cuts it down to 2MB
87
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:
920 firmwareIn = "./System/Library/Extensions/AppleCameraInterface.kext/Contents/MacOS/AppleCameraInterface";
1021 firmwareOut = "firmware.bin";
11− firmwareOffset = "81920";
12− firmwareSize = "603715";
22+
23+ # The following are from the extract-firmware.sh
24+ firmwareOffset = "81920"; # Variable: firmw_offsets
25+ firmwareSize = "603715"; # Variable: firmw_sizes
26+
1327
1428 # separated this here as the script will fail without the 'exit 0'
1529 unpack = pkgs.writeScriptBin "unpack" ''
@@ -22,10 +36,9 @@ in
2236stdenv.mkDerivation {
2337
2438 name = "facetimehd-firmware-${version}";
25−
2639 src = fetchurl {
27− url = "https://support.apple.com/downloads/DL1849/en_US/osxupd10.11.2.dmg";
28− sha256 = "1jw6sy9vj27amfak83cs2c7q856y4mk1wix3rl4q10yvd9bl4k9x";
40+ url = dmgUrl;
41+ sha256 = "0xqkl4yds0n9fdjvnk0v5mj382q02crry6wm2q7j3ncdqwsv02sv";
2942 curlOpts = "-r ${dmgRange}";
3043 };
3144
@@ -42,9 +55,9 @@ stdenv.mkDerivation {
4255
4356 meta = with stdenv.lib; {
4457 description = "facetimehd firmware";
45− homepage = https://support.apple.com/downloads/DL1849;
58+ homepage = https://support.apple.com/downloads/DL1877;
4659 license = licenses.unfree;
47− maintainers = [ maintainers.womfoo ];
60+ maintainers = with maintainers; [ womfoo grahamc ];
4861 platforms = platforms.linux;
4962 };
5063