firefox: Add ALSA dependency for Web MIDI support

This commit is contained in:
Mikael 2024-08-22 17:54:20 +02:00
parent 1489479580
commit d165d58553
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -4,7 +4,6 @@ let
inherit (nixpkgs.lib.attrsets) genAttrs; inherit (nixpkgs.lib.attrsets) genAttrs;
in genAttrs [ in genAttrs [
"SDL2" "SDL2"
"firefox-unwrapped"
"mpv-unwrapped" "mpv-unwrapped"
] (pkg: prev.${pkg}.override { alsaSupport = false; }) ] (pkg: prev.${pkg}.override { alsaSupport = false; })
// genAttrs [ // genAttrs [
@ -12,6 +11,13 @@ in genAttrs [
"libcanberra" "libcanberra"
] (pkg: prev.${pkg}.override { withAlsa = false; }) ] (pkg: prev.${pkg}.override { withAlsa = false; })
// { // {
firefox-unwrapped = (prev.firefox-unwrapped.overrideAttrs (prevAttrs: {
buildInputs = prevAttrs.buildInputs or [ ]
++ [ final.alsa-lib ];
})).override {
alsaSupport = false;
};
firefox = final.wrapFirefox final.firefox-unwrapped { }; firefox = final.wrapFirefox final.firefox-unwrapped { };
mpv = final.mpv-unwrapped.wrapper { mpv = final.mpv-unwrapped.wrapper {