2021-01-05 17:05:55 +00:00
|
|
|
{ stdenvNoCC, fetchgit, lib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "linux-firmware";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "20220209";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
|
2021-10-28 06:52:43 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-QWGnaGQrDUQeYUIBq0/63YdHZgyaF4s9fdyLA9bb6qs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
|
|
|
# Firmware blobs do not need fixing and should not be modified
|
|
|
|
dontFixup = true;
|
|
|
|
|
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHashAlgo = "sha256";
|
2022-02-20 05:27:41 +00:00
|
|
|
outputHash = "sha256-ahXZK13wrcZW/8ZCgUTHU6N4QKsL3NV98eRbYGBp3jw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Binary firmware collection packaged by kernel.org";
|
2021-01-05 17:05:55 +00:00
|
|
|
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.unfreeRedistributableFirmware;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
priority = 6; # give precedence to kernel firmware
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru = { inherit version; };
|
|
|
|
}
|