forked from mirrors/nixpkgs
Add alsa-firmware package
This commit is contained in:
parent
f7f0fd0dfe
commit
90b083d387
39
pkgs/os-specific/linux/alsa-firmware/default.nix
Normal file
39
pkgs/os-specific/linux/alsa-firmware/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{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
|
||||
'';
|
||||
|
||||
installFlags = ''
|
||||
DESTDIR=$(out)
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
# These are lifted from the Arch PKGBUILD
|
||||
# remove files which conflicts with linux-firmware
|
||||
rm -rf $out/usr/lib/firmware/{ct{efx,speq}.bin,ess,korg,sb16,yamaha}
|
||||
# remove broken symlinks (broken upstream)
|
||||
rm -rf $out/usr/lib/firmware/turtlebeach
|
||||
# remove empty dir
|
||||
rm -rf $out/usr/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://www.alsa-project.org/main/index.php/Main_Page;
|
||||
longDescription = "
|
||||
Soundcard firmwares from the alsa project.
|
||||
";
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
};
|
||||
}
|
|
@ -8545,6 +8545,8 @@ let
|
|||
|
||||
alienfx = callPackage ../os-specific/linux/alienfx { };
|
||||
|
||||
alsaFirmware = callPackage ../os-specific/linux/alsa-firmware { };
|
||||
|
||||
alsaLib = callPackage ../os-specific/linux/alsa-lib { };
|
||||
|
||||
alsaPlugins = callPackage ../os-specific/linux/alsa-plugins {
|
||||
|
|
Loading…
Reference in a new issue