at 18.09-beta 39 lines 1.2 kB view raw
1{ stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 name = "alsa-lib-1.1.6"; 5 6 src = fetchurl { 7 url = "mirror://alsa/lib/${name}.tar.bz2"; 8 sha256 = "096pwrnhj36yndldvs2pj4r871zhcgisks0is78f1jkjn9sd4b2z"; 9 }; 10 11 patches = [ 12 ./alsa-plugin-conf-multilib.patch 13 ]; 14 15 # Fix pcm.h file in order to prevent some compilation bugs 16 # 2: see http://stackoverflow.com/questions/3103400/how-to-overcome-u-int8-t-vs-uint8-t-issue-efficiently 17 postPatch = '' 18 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 19 20 21 sed -i -e '1i#include <stdint.h>' include/pcm.h 22 sed -i -e 's/u_int\([0-9]*\)_t/uint\1_t/g' include/pcm.h 23 ''; 24 25 outputs = [ "out" "dev" ]; 26 27 meta = with stdenv.lib; { 28 homepage = http://www.alsa-project.org/; 29 description = "ALSA, the Advanced Linux Sound Architecture libraries"; 30 31 longDescription = '' 32 The Advanced Linux Sound Architecture (ALSA) provides audio and 33 MIDI functionality to the Linux-based operating system. 34 ''; 35 36 license = licenses.gpl3Plus; 37 platforms = platforms.linux; 38 }; 39}