patos/pkgs/linux-firmware.nix
Daniel Lundin cca2a0ed75
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
WIP: next step on image build
2024-11-14 00:50:38 +01:00

12 lines
336 B
Nix

{ stdenv, lib
, linux-firmware
, fwDirs
}: stdenv.mkDerivation {
pname = "linux-firmware-minimal";
version = linux-firmware.version;
buildCommand = lib.concatStringsSep "\n" (
[''mkdir -p "$out/lib/firmware"'']
++ (map (name: ''
cp -r "${linux-firmware}/lib/firmware/${name}" "$out/lib/firmware/${name}"
'') fwDirs));
}