summary refs log tree commit diff
path: root/pkgs/os-specific/linux/firmware/facetimehd-firmware
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2016-05-25 22:22:15 -0500
committerGraham Christensen <graham@grahamc.com>2016-05-26 14:05:45 -0500
commit27bf0d203d324c7b04ec599f3ea5c59027c84d4f (patch)
treec0a0599b951798e960aeb1acc213663aded02a1a /pkgs/os-specific/linux/firmware/facetimehd-firmware
parent1115efe77776c2f6b9b147d6b0ff17a2cf977b5a (diff)
downloadnixpkgs-27bf0d203d324c7b04ec599f3ea5c59027c84d4f.tar
nixpkgs-27bf0d203d324c7b04ec599f3ea5c59027c84d4f.tar.gz
nixpkgs-27bf0d203d324c7b04ec599f3ea5c59027c84d4f.tar.bz2
nixpkgs-27bf0d203d324c7b04ec599f3ea5c59027c84d4f.tar.lz
nixpkgs-27bf0d203d324c7b04ec599f3ea5c59027c84d4f.tar.xz
nixpkgs-27bf0d203d324c7b04ec599f3ea5c59027c84d4f.tar.zst
nixpkgs-27bf0d203d324c7b04ec599f3ea5c59027c84d4f.zip
facetimehd-firmware: 1.43 -> 1.43_4
Diffstat (limited to 'pkgs/os-specific/linux/firmware/facetimehd-firmware')
-rw-r--r--pkgs/os-specific/linux/firmware/facetimehd-firmware/default.nix29
1 files changed, 21 insertions, 8 deletions
diff --git a/pkgs/os-specific/linux/firmware/facetimehd-firmware/default.nix b/pkgs/os-specific/linux/firmware/facetimehd-firmware/default.nix
index 05a293083b7..2f16dd5c5a4 100644
--- a/pkgs/os-specific/linux/firmware/facetimehd-firmware/default.nix
+++ b/pkgs/os-specific/linux/firmware/facetimehd-firmware/default.nix
@@ -2,14 +2,28 @@
 
 let
 
-  version = "1.43";
+  version = "1.43_4";
 
-  dmgRange = "420107885-421933300"; # the whole download is 1.3GB, this cuts it down to 2MB
 
+  # Updated according to https://github.com/patjak/bcwc_pcie/pull/81/files
+  # and https://github.com/patjak/bcwc_pcie/blob/5a7083bd98b38ef3bd223f7ee531d58f4fb0fe7c/firmware/Makefile#L3-L9
+  # and https://github.com/patjak/bcwc_pcie/blob/5a7083bd98b38ef3bd223f7ee531d58f4fb0fe7c/firmware/extract-firmware.sh
+
+  # From the Makefile:
+  dmgUrl = "https://support.apple.com/downloads/DL1877/en_US/osxupd10.11.5.dmg";
+  dmgRange = "205261917-208085450"; # the whole download is 1.3GB, this cuts it down to 2MB
+  # Notes:
+  # 1. Be sure to update the sha256 below in the fetch_url
+  # 2. Be sure to update the homepage in the meta
+
+  # Also from the Makefile (OS_DRV, OS_DRV_DIR), but seems to not change:
   firmwareIn = "./System/Library/Extensions/AppleCameraInterface.kext/Contents/MacOS/AppleCameraInterface";
   firmwareOut = "firmware.bin";
-  firmwareOffset = "81920";
-  firmwareSize = "603715";
+
+  # The following are from the extract-firmware.sh
+  firmwareOffset = "81920"; # Variable: firmw_offsets
+  firmwareSize = "603715"; # Variable: firmw_sizes
+
 
   # separated this here as the script will fail without the 'exit 0'
   unpack = pkgs.writeScriptBin "unpack" ''
@@ -22,10 +36,9 @@ in
 stdenv.mkDerivation {
 
   name = "facetimehd-firmware-${version}";
-
   src = fetchurl {
-    url = "https://support.apple.com/downloads/DL1849/en_US/osxupd10.11.2.dmg";
-    sha256 = "1jw6sy9vj27amfak83cs2c7q856y4mk1wix3rl4q10yvd9bl4k9x";
+    url = dmgUrl;
+    sha256 = "0xqkl4yds0n9fdjvnk0v5mj382q02crry6wm2q7j3ncdqwsv02sv";
     curlOpts = "-r ${dmgRange}";
   };
 
@@ -42,7 +55,7 @@ stdenv.mkDerivation {
 
   meta = with stdenv.lib; {
     description = "facetimehd firmware";
-    homepage = https://support.apple.com/downloads/DL1849;
+    homepage = https://support.apple.com/downloads/DL1877;
     license = licenses.unfree;
     maintainers = [ maintainers.womfoo ];
     platforms = platforms.linux;