Skip to content

Commit

Permalink
Fix empty firmware derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbaur committed Feb 12, 2025
1 parent 0e22f93 commit c638d95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compress-firmware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ runCommand "firmware-xz"
inherit (compressor) nativeBuildInputs;
}
(
lib.concatLines (
''
mkdir -p $out/lib/firmware
''
+ lib.concatLines (
map (firmware: ''
mkdir -p $out/lib
(cd ${firmware} && find lib/firmware -type d -print0) |
(cd $out && xargs -0 mkdir -v --)
(cd ${firmware} && find lib/firmware -type f -print0) |
Expand Down

0 comments on commit c638d95

Please sign in to comment.