alsa: set meta.platform for ALSA-related packages to Linux

This commit is contained in:
Peter Simons 2013-12-06 19:26:28 +01:00
parent ab98496d0b
commit 87e87bd56c
3 changed files with 34 additions and 31 deletions

View File

@ -11,35 +11,6 @@ stdenv.mkDerivation rec {
sha256 = "068d8c92122hwca5jzhrjp4a131995adlb1d79zgrm7gwy9x63k9"; sha256 = "068d8c92122hwca5jzhrjp4a131995adlb1d79zgrm7gwy9x63k9";
}; };
configureFlags = "--disable-xmlto";
# 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 = ''
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 '1i#include <stdint.h>' include/pcm.h
sed -i -e 's/u_int\([0-9]*\)_t/uint\1_t/g' include/pcm.h
'';
crossAttrs = {
patchPhase = ''
sed -i s/extern/static/g include/iatomic.h
'';
};
meta = {
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.
'';
homepage = http://www.alsa-project.org/;
};
patches = [ patches = [
/* allow specifying alternatives alsa plugin locations using /* allow specifying alternatives alsa plugin locations using
export ALSA_PLUGIN_DIRS=$(nix-build -A alsaPlugins)/lib/alsa-lib export ALSA_PLUGIN_DIRS=$(nix-build -A alsaPlugins)/lib/alsa-lib
@ -53,4 +24,34 @@ stdenv.mkDerivation rec {
on mips, because lacks some symbols atomic_add/atomic_sub */ on mips, because lacks some symbols atomic_add/atomic_sub */
./mips-atomic.patch ./mips-atomic.patch
]; ];
# 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 = ''
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 '1i#include <stdint.h>' include/pcm.h
sed -i -e 's/u_int\([0-9]*\)_t/uint\1_t/g' include/pcm.h
'';
configureFlags = "--disable-xmlto";
crossAttrs = {
patchPhase = ''
sed -i s/extern/static/g include/iatomic.h
'';
};
meta = {
homepage = http://www.alsa-project.org/;
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.
'';
platforms = stdenv.lib.platforms.linux;
};
} }

View File

@ -21,6 +21,7 @@ stdenv.mkDerivation rec {
''; '';
meta = { meta = {
homepage = http://www.alsa-project.org/;
description = "ALSA, the Advanced Linux Sound Architecture alsa-oss emulation"; description = "ALSA, the Advanced Linux Sound Architecture alsa-oss emulation";
longDescription = '' longDescription = ''
@ -28,6 +29,6 @@ stdenv.mkDerivation rec {
MIDI functionality to the Linux-based operating system. MIDI functionality to the Linux-based operating system.
''; '';
homepage = http://www.alsa-project.org/; platforms = stdenv.lib.platforms.linux;
}; };
} }

View File

@ -23,6 +23,7 @@ stdenv.mkDerivation rec {
''; '';
meta = { meta = {
homepage = http://www.alsa-project.org/;
description = "ALSA, the Advanced Linux Sound Architecture utils"; description = "ALSA, the Advanced Linux Sound Architecture utils";
longDescription = '' longDescription = ''
@ -30,6 +31,6 @@ stdenv.mkDerivation rec {
MIDI functionality to the Linux-based operating system. MIDI functionality to the Linux-based operating system.
''; '';
homepage = http://www.alsa-project.org/; platforms = stdenv.lib.platforms.linux;
}; };
} }