lol

fwupd: do not wrap efi capsule (#45719)

wrapGAppsHook is not able to skip efi capsules so we need to
switch to manual wrapping.

Closes: https://github.com/NixOS/nixpkgs/issues/45715

authored by

Jan Tojnar and committed by
xeji
b0d4c25c e9f0afe7

+13
+13
pkgs/os-specific/linux/firmware/fwupd/default.nix
··· 79 79 80 80 FONTCONFIG_FILE = fontsConf; # Fontconfig error: Cannot load default config file 81 81 82 + # TODO: wrapGAppsHook wraps efi capsule even though it is not elf 83 + dontWrapGApps = true; 84 + # so we need to wrap the executables manually 85 + postFixup = '' 86 + find -L "$out/bin" "$out/libexec" -type f -executable -print0 \ 87 + | while IFS= read -r -d ''' file; do 88 + if [[ "''${file}" != *.efi ]]; then 89 + echo "Wrapping program ''${file}" 90 + wrapProgram "''${file}" "''${gappsWrapperArgs[@]}" 91 + fi 92 + done 93 + ''; 94 + 82 95 # /etc/fwupd/uefi.conf is created by the services.hardware.fwupd NixOS module 83 96 passthru = { 84 97 filesInstalledToEtc = [