10 stdenv.mkDerivation rec {
11 pname = "alsa-firmware";
15 url = "mirror://alsa/firmware/alsa-firmware-${version}.tar.bz2";
16 hash = "sha256-tnttfQi8/CR+9v8KuIqZwYgwWjz1euLf0LzZpbNs1bs=";
20 # fixes some includes / missing types on musl libc; should not make a difference for other platforms
22 url = "https://raw.githubusercontent.com/void-linux/void-packages/ae690000017d5fd355ab397c49202426e3a01c11/srcpkgs/alsa-firmware/patches/musl.patch";
23 hash = "sha256-4A+TBBvpz14NwMNewLc2LQL51hnz4EZlZ44rhnx5dnc=";
27 nativeBuildInputs = [ autoreconfHook ];
29 configureFlags = [ "--with-hotplug-dir=$(out)/lib/firmware" ];
31 depsBuildBuild = lib.optional (
32 stdenv.buildPlatform != stdenv.hostPlatform || stdenv.hostPlatform.isAarch64
33 ) buildPackages.stdenv.cc;
38 # These are lifted from the Arch PKGBUILD
39 # remove files which conflicts with linux-firmware
40 rm -rf $out/lib/firmware/{ct{efx,speq}.bin,ess,korg,sb16,yamaha}
41 # remove broken symlinks (broken upstream)
42 rm -rf $out/lib/firmware/turtlebeach
48 homepage = "http://www.alsa-project.org/";
49 description = "Soundcard firmwares from the alsa project";
50 license = licenses.gpl2Plus;
51 platforms = platforms.linux;
52 maintainers = with maintainers; [ l-as ];