2015-07-22 20:33:27 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2012-01-12 17:16:11 +00:00
|
|
|
|
2015-03-25 21:43:50 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "firmware-linux-nonfree-${version}";
|
2017-07-05 17:59:59 +01:00
|
|
|
version = "2017-07-05";
|
2015-02-10 00:28:37 +00:00
|
|
|
|
2015-07-22 20:33:27 +01:00
|
|
|
# This repo is built by merging the latest versions of
|
|
|
|
# http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
|
|
|
|
# and
|
|
|
|
# http://git.kernel.org/cgit/linux/kernel/git/iwlwifi/linux-firmware.git/
|
|
|
|
# for any given date. This gives us up to date iwlwifi firmware as well as
|
|
|
|
# the usual set of firmware. firmware/linux-firmware usually lags kernel releases
|
|
|
|
# so iwlwifi cards will fail to load on newly released kernels.
|
|
|
|
src = fetchFromGitHub {
|
2017-02-06 13:57:04 +00:00
|
|
|
owner = "fpletz";
|
2015-07-22 20:33:27 +01:00
|
|
|
repo = "linux-firmware";
|
2017-02-06 13:57:04 +00:00
|
|
|
rev = version;
|
2017-07-05 17:59:59 +01:00
|
|
|
sha256 = "0vlk043y7c32g4d9hz93j64x372qqrwsq65mh8s5s5xrvamja2if";
|
2015-02-10 00:28:37 +00:00
|
|
|
};
|
2012-01-12 17:16:11 +00:00
|
|
|
|
2015-02-10 00:28:37 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out
|
2012-02-07 09:14:34 +00:00
|
|
|
'';
|
2012-01-12 17:16:11 +00:00
|
|
|
|
2015-02-10 00:28:37 +00:00
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
2012-01-12 17:16:11 +00:00
|
|
|
|
2015-02-10 00:28:37 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Binary firmware collection packaged by kernel.org";
|
2013-08-14 02:56:07 +01:00
|
|
|
homepage = http://packages.debian.org/sid/firmware-linux-nonfree;
|
2015-02-10 00:28:37 +00:00
|
|
|
license = licenses.unfreeRedistributableFirmware;
|
|
|
|
platforms = platforms.linux;
|
2016-07-19 06:54:30 +01:00
|
|
|
maintainers = with maintainers; [ wkennington fpletz ];
|
2015-08-24 23:37:54 +01:00
|
|
|
priority = 6; # give precedence to kernel firmware
|
2012-01-12 17:16:11 +00:00
|
|
|
};
|
2015-03-25 21:43:50 +00:00
|
|
|
|
|
|
|
passthru = { inherit version; };
|
2012-01-12 17:16:11 +00:00
|
|
|
}
|