2022-09-22 12:36:57 +00:00
|
|
|
let
|
|
|
|
source = import ./source.nix;
|
|
|
|
in {
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchzip,
|
|
|
|
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-09-22 12:36:57 +00:00
|
|
|
version = source.version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${version}.tar.gz";
|
2022-09-22 12:36:57 +00:00
|
|
|
hash = source.sourceHash;
|
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-09-22 12:36:57 +00:00
|
|
|
outputHash = source.outputHash;
|
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; };
|
|
|
|
}
|