1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/os-specific/linux/alsa-firmware/default.nix

36 lines
973 B
Nix
Raw Normal View History

{ stdenv, buildPackages, autoreconfHook, fetchurl, fetchpatch }:
2015-03-16 14:45:21 +00:00
stdenv.mkDerivation rec {
2020-12-24 01:08:23 +00:00
name = "alsa-firmware-1.2.4";
2015-03-16 14:45:21 +00:00
src = fetchurl {
url = "mirror://alsa/firmware/${name}.tar.bz2";
2020-12-24 01:08:23 +00:00
sha256 = "sha256-tnttfQi8/CR+9v8KuIqZwYgwWjz1euLf0LzZpbNs1bs=";
2015-03-16 14:45:21 +00:00
};
nativeBuildInputs = [ autoreconfHook buildPackages.stdenv.cc ];
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 = {
homepage = "http://www.alsa-project.org/";
description = "Soundcard firmwares from the alsa project";
2015-03-16 14:45:21 +00:00
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux;
2015-03-16 14:45:21 +00:00
};
}