2015-03-16 14:45:21 +00:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "alsa-firmware-1.0.29";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-10 18:56:20 +00:00
|
|
|
url = "mirror://alsa/firmware/${name}.tar.bz2";
|
2015-03-16 14:45:21 +00:00
|
|
|
sha256 = "0gfcyj5anckjn030wcxx5v2xk2s219nyf99s9m833275b5wz2piw";
|
|
|
|
};
|
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-hotplug-dir=$(out)/lib/firmware"
|
|
|
|
];
|
2015-03-16 14:45:21 +00:00
|
|
|
|
2015-03-17 00:12:21 +00:00
|
|
|
dontStrip = true;
|
2015-03-16 14:45:21 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# These are lifted from the Arch PKGBUILD
|
|
|
|
# remove files which conflicts with linux-firmware
|
2015-03-16 16:55:45 +00:00
|
|
|
rm -rf $out/lib/firmware/{ct{efx,speq}.bin,ess,korg,sb16,yamaha}
|
2015-03-16 14:45:21 +00:00
|
|
|
# remove broken symlinks (broken upstream)
|
2015-03-16 16:55:45 +00:00
|
|
|
rm -rf $out/lib/firmware/turtlebeach
|
2015-03-16 14:45:21 +00:00
|
|
|
# remove empty dir
|
2015-03-16 16:55:45 +00:00
|
|
|
rm -rf $out/bin
|
2015-03-16 14:45:21 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2018-06-10 18:56:20 +00:00
|
|
|
homepage = http://www.alsa-project.org/;
|
2015-03-18 20:22:33 +00:00
|
|
|
description = "Soundcard firmwares from the alsa project";
|
2015-03-16 14:45:21 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-03-16 14:45:21 +00:00
|
|
|
};
|
|
|
|
}
|