idiosyn/overlay/no-alsa.nix

21 lines
431 B
Nix
Raw Normal View History

2024-08-18 13:47:18 +02:00
{ nixpkgs, ... }: final: prev:
let
inherit (nixpkgs.lib.attrsets) genAttrs;
in genAttrs [
"SDL2"
"firefox-unwrapped"
"mpv-unwrapped"
] (pkg: prev.${pkg}.override { alsaSupport = false; })
// genAttrs [
"ffmpeg"
"libcanberra"
] (pkg: prev.${pkg}.override { withAlsa = false; })
// {
firefox = final.wrapFirefox final.firefox-unwrapped { };
mpv = final.mpv-unwrapped.wrapper {
mpv = final.mpv-unwrapped;
};
}