We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cea389 commit b25c55bCopy full SHA for b25c55b
modules/devices.nix
@@ -35,9 +35,13 @@ let
35
(lib.concatLines (map
36
# all files in linux-firmware are read-only
37
(firmwarePath: ''
38
- install -Dm0444 \
39
- --target-directory=$(dirname $out/lib/firmware/${firmwarePath}) \
40
- $(realpath ${pkgs.linux-firmware}/lib/firmware/${firmwarePath})
+ if [[ -f $(realpath ${pkgs.linux-firmware}/lib/firmware/${firmwarePath}) ]]; then
+ install -Dm0444 \
+ --target-directory=$(dirname $out/lib/firmware/${firmwarePath}) \
41
+ $(realpath ${pkgs.linux-firmware}/lib/firmware/${firmwarePath})
42
+ else
43
+ echo "WARNING: lib/firmware/${firmwarePath} does not exist in linux-firmware ${pkgs.linux-firmware.version}"
44
+ fi
45
''
46
)
47
paths)));
0 commit comments