nixpkgs-suyu/pkgs/os-specific/linux/firmware/firmware-linux-nonfree/default.nix
2016-06-27 00:21:26 +02:00

37 lines
1.2 KiB
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "firmware-linux-nonfree-${version}";
version = "2016-05-18";
# 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 {
owner = "wkennington";
repo = "linux-firmware";
rev = "19495832c6899bd811874439376d513290773c31";
sha256 = "1700a24sfw6xa3q3r8aa5wfhydgix83m57plpfirdmc9qr4isrr0";
};
preInstall = ''
mkdir -p $out
'';
installFlags = [ "DESTDIR=$(out)" ];
meta = with stdenv.lib; {
description = "Binary firmware collection packaged by kernel.org";
homepage = http://packages.debian.org/sid/firmware-linux-nonfree;
license = licenses.unfreeRedistributableFirmware;
platforms = platforms.linux;
maintainers = with maintainers; [ wkennington ];
priority = 6; # give precedence to kernel firmware
};
passthru = { inherit version; };
}