2020-03-22 10:40:47 -07:00
|
|
|
{ stdenv, fetchurl, alsa-ucm-conf, alsa-topology-conf }:
|
2009-04-21 02:56:02 -07:00
|
|
|
|
2009-10-30 08:05:13 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2020-06-15 01:31:12 -07:00
|
|
|
name = "alsa-lib-1.2.3";
|
2013-02-23 03:59:28 -08:00
|
|
|
|
2009-04-21 02:56:02 -07:00
|
|
|
src = fetchurl {
|
2018-06-10 11:56:20 -07:00
|
|
|
url = "mirror://alsa/lib/${name}.tar.bz2";
|
2020-06-15 01:31:12 -07:00
|
|
|
sha256 = "13k7dx1g749z74rz71hs5j8z0pqdjgx7l69pn0vsy7jizhi0kw02";
|
2009-10-30 08:05:13 -07:00
|
|
|
};
|
2013-02-23 03:59:28 -08:00
|
|
|
|
2013-12-06 10:26:28 -08:00
|
|
|
patches = [
|
2014-09-10 20:01:08 -07:00
|
|
|
./alsa-plugin-conf-multilib.patch
|
2013-12-06 10:26:28 -08:00
|
|
|
];
|
2013-02-23 03:59:28 -08:00
|
|
|
|
2020-03-22 10:40:47 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2009-04-21 02:56:02 -07:00
|
|
|
# Fix pcm.h file in order to prevent some compilation bugs
|
2009-10-30 08:05:13 -07:00
|
|
|
postPatch = ''
|
2009-04-21 02:56:02 -07:00
|
|
|
sed -i -e 's|//int snd_pcm_mixer_element(snd_pcm_t \*pcm, snd_mixer_t \*mixer, snd_mixer_elem_t \*\*elem);|/\*int snd_pcm_mixer_element(snd_pcm_t \*pcm, snd_mixer_t \*mixer, snd_mixer_elem_t \*\*elem);\*/|' include/pcm.h
|
2020-03-22 10:40:47 -07:00
|
|
|
'';
|
2013-02-23 03:59:28 -08:00
|
|
|
|
2020-03-22 10:40:47 -07:00
|
|
|
postInstall = ''
|
|
|
|
ln -s ${alsa-ucm-conf}/share/alsa/{ucm,ucm2} $out/share/alsa
|
|
|
|
ln -s ${alsa-topology-conf}/share/alsa/topology $out/share/alsa
|
2009-04-21 02:56:02 -07:00
|
|
|
'';
|
2010-08-11 13:11:12 -07:00
|
|
|
|
2016-08-28 17:30:01 -07:00
|
|
|
outputs = [ "out" "dev" ];
|
2015-10-08 02:23:19 -07:00
|
|
|
|
2014-06-19 11:24:23 -07:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://www.alsa-project.org/";
|
2009-04-21 02:56:02 -07:00
|
|
|
description = "ALSA, the Advanced Linux Sound Architecture libraries";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
The Advanced Linux Sound Architecture (ALSA) provides audio and
|
|
|
|
MIDI functionality to the Linux-based operating system.
|
|
|
|
'';
|
|
|
|
|
2014-06-19 11:24:23 -07:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2009-04-21 02:56:02 -07:00
|
|
|
};
|
|
|
|
}
|