nixpkgs/pkgs/os-specific/linux/alsa-firmware/default.nix

36 lines
934 B
Nix
Raw Normal View History

2015-03-16 15:45:21 +01:00
{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "alsa-firmware-1.0.29";
src = fetchurl {
urls = [
"ftp://ftp.alsa-project.org/pub/firmware/${name}.tar.bz2"
"http://alsa.cybermirror.org/firmware/${name}.tar.bz2"
];
sha256 = "0gfcyj5anckjn030wcxx5v2xk2s219nyf99s9m833275b5wz2piw";
};
configureFlags = ''
--with-hotplug-dir=$(out)/lib/firmware
'';
2015-03-17 01:12:21 +01:00
dontStrip = true;
2015-03-16 15:45:21 +01:00
postInstall = ''
# These are lifted from the Arch PKGBUILD
# remove files which conflicts with linux-firmware
2015-03-16 17:55:45 +01:00
rm -rf $out/lib/firmware/{ct{efx,speq}.bin,ess,korg,sb16,yamaha}
2015-03-16 15:45:21 +01:00
# remove broken symlinks (broken upstream)
2015-03-16 17:55:45 +01:00
rm -rf $out/lib/firmware/turtlebeach
2015-03-16 15:45:21 +01:00
# remove empty dir
2015-03-16 17:55:45 +01:00
rm -rf $out/bin
2015-03-16 15:45:21 +01:00
'';
meta = {
homepage = http://www.alsa-project.org/main/index.php/Main_Page;
description = "Soundcard firmwares from the alsa project";
2015-03-16 15:45:21 +01:00
license = stdenv.lib.licenses.gpl2Plus;
};
}