nixos-image-thinkpad-t14s-gen6/pkgs/t14s-firmware.nix
2024-10-18 15:17:09 +00:00

34 lines
708 B
Nix

{ stdenvNoCC
, lib
, rdfind
, which
, fetchFromGitHub
}:
stdenvNoCC.mkDerivation rec {
pname = "linux-firmware";
version = "20241003";
src = fetchFromGitHub {
owner = "jollheef";
repo = "linux-firmware-x1e78100-lenovo-thinkpad-t14s";
rev = "e3ba8bb550b023b9f8501360f1d85d74d3de96b4";
hash = "sha256-REkQpg+27to11VoDfAksvqzi5M7MDjAcAvR7P8cnRk0=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/lib/firmware
cp -r * $out/lib/firmware/
runHook postInstall
'';
dontStrip = true;
meta = with lib; {
description = "Firmware files for ThinkPad T14s Gen 6";
license = licenses.unfreeRedistributableFirmware;
platforms = platforms.linux;
};
}