alsaLib: 1.1.9 -> 1.2.2
This commit is contained in:
parent
f0a6dfcbdf
commit
4fef426da6
|
@ -1,25 +1,27 @@
|
||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, alsa-ucm-conf, alsa-topology-conf }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "alsa-lib-1.1.9";
|
name = "alsa-lib-1.2.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://alsa/lib/${name}.tar.bz2";
|
url = "mirror://alsa/lib/${name}.tar.bz2";
|
||||||
sha256 = "0jwr9g4yxg9gj6xx0sb2r6wrdl8amrjd19hilkrq4rirynp770s8";
|
sha256 = "1v5kb8jyvrpkvvq7dq8hfbmcj68lml97i4s0prxpfx2mh3c57s6q";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./alsa-plugin-conf-multilib.patch
|
./alsa-plugin-conf-multilib.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
# Fix pcm.h file in order to prevent some compilation bugs
|
# Fix pcm.h file in order to prevent some compilation bugs
|
||||||
# 2: see http://stackoverflow.com/questions/3103400/how-to-overcome-u-int8-t-vs-uint8-t-issue-efficiently
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
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
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
sed -i -e '1i#include <stdint.h>' include/pcm.h
|
ln -s ${alsa-ucm-conf}/share/alsa/{ucm,ucm2} $out/share/alsa
|
||||||
sed -i -e 's/u_int\([0-9]*\)_t/uint\1_t/g' include/pcm.h
|
ln -s ${alsa-topology-conf}/share/alsa/topology $out/share/alsa
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
Loading…
Reference in New Issue