···2233stdenv.mkDerivation rec {
44 name = "firmware-linux-nonfree-${version}";
55- version = "2017-10-09-${src.iwlRev}";
55+ version = "2017-10-13-${src.iwlRev}";
6677 # The src runCommand automates the process of building a merged repository of both
88 #
99- # http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
1010- # http://git.kernel.org/cgit/linux/kernel/git/iwlwifi/linux-firmware.git/
99+ # https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
1010+ # https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/linux-firmware.git/
1111 #
1212 # This gives us up to date iwlwifi firmware as well as
1313 # the usual set of firmware. firmware/linux-firmware usually lags kernel releases
···1717 # update version to the more recent commit date
18181919 src = runCommand "firmware-linux-nonfree-src-merged-${version}" {
2020- # When updating this, you need to let it run with a wrong hash, in order to find out the desired hash
2121- baseRev = "bf04291309d3169c0ad3b8db52564235bbd08e30";
2222- iwlRev = "iwlwifi-fw-2017-11-03";
2020+ shallowSince = "2017-10-01";
2121+ baseRev = "85313b4aa4ef0c2ce41bbd0ffdb9b03363256f28";
2222+ iwlRev = "iwlwifi-fw-2017-11-15";
23232424+ # When updating this, you need to let it run with a wrong hash, in order to find out the desired hash
2425 # randomly mutate the hash to break out of fixed hash, when updating
2525- outputHash = "11izv1vpq9ixlqdss19lzs5q289d7jxr5kgf6iymk4alxznffd8z";
2626+ outputHash = "0kpg1xmx5mjnqxv5n21yvvq4sl59yjpwjv9ficd054544q1v2jly";
26272728 outputHashAlgo = "sha256";
2829 outputHashMode = "recursive";
3030+3131+ # Doing the download on a remote machine just duplicates network
3232+ # traffic, so don't do that.
3333+ preferLocalBuild = true;
3434+2935 buildInputs = [ git gnupg ];
3036 NIX_SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
3137 } ''
···3339 cd src
3440 git config user.email "build-daemon@nixos.org"
3541 git config user.name "Nixos Build Daemon $name"
3636- git remote add base git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
3737- git remote add iwl git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware.git
3838- git fetch base $baseRev
3939- git checkout -b work FETCH_HEAD
4040- git fetch iwl $iwlRev
4141- git merge FETCH_HEAD)
4242+ git remote add base https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
4343+ git remote add iwl https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware.git
4444+ git fetch --shallow-since=$shallowSince base
4545+ git fetch --shallow-since=$shallowSince iwl
4646+ git checkout -b work $baseRev
4747+ git merge $iwlRev)
4248 rm -rf src/.git
4349 cp -a src $out
4450 '';