nixpkgs/pkgs/os-specific/linux/firmware/firmware-linux-nonfree/default.nix
2015-07-22 12:33:27 -07:00

36 lines
1.2 KiB
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "firmware-linux-nonfree-${version}";
version = "2015-07-23";
# 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 = "854b7f33e839ceea41034b45d6f755ea70c85486";
sha256 = "1hhqvb96adk64ljf6hp5qss8fhpic28y985gbggh5p2w9bsgs5zq";
};
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 ];
};
passthru = { inherit version; };
}