summary refs log tree commit diff
path: root/pkgs/os-specific/linux/alsa-lib
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2013-12-06 19:26:28 +0100
committerPeter Simons <simons@cryp.to>2013-12-06 19:26:34 +0100
commit87e87bd56c5d11848ce3a771ed3b5e9d2976629b (patch)
treea798b14581ed877c53a4cae2bc9f1d8a19387a71 /pkgs/os-specific/linux/alsa-lib
parentab98496d0b9afc38cfeed2ff3c6521cecd8bd6a1 (diff)
downloadnixlib-87e87bd56c5d11848ce3a771ed3b5e9d2976629b.tar
nixlib-87e87bd56c5d11848ce3a771ed3b5e9d2976629b.tar.gz
nixlib-87e87bd56c5d11848ce3a771ed3b5e9d2976629b.tar.bz2
nixlib-87e87bd56c5d11848ce3a771ed3b5e9d2976629b.tar.lz
nixlib-87e87bd56c5d11848ce3a771ed3b5e9d2976629b.tar.xz
nixlib-87e87bd56c5d11848ce3a771ed3b5e9d2976629b.tar.zst
nixlib-87e87bd56c5d11848ce3a771ed3b5e9d2976629b.zip
alsa: set meta.platform for ALSA-related packages to Linux
Diffstat (limited to 'pkgs/os-specific/linux/alsa-lib')
-rw-r--r--pkgs/os-specific/linux/alsa-lib/default.nix33
1 files changed, 17 insertions, 16 deletions
diff --git a/pkgs/os-specific/linux/alsa-lib/default.nix b/pkgs/os-specific/linux/alsa-lib/default.nix
index 239c70d515d5..8ad77c6b99e0 100644
--- a/pkgs/os-specific/linux/alsa-lib/default.nix
+++ b/pkgs/os-specific/linux/alsa-lib/default.nix
@@ -11,7 +11,19 @@ stdenv.mkDerivation rec {
     sha256 = "068d8c92122hwca5jzhrjp4a131995adlb1d79zgrm7gwy9x63k9";
   };
 
-  configureFlags = "--disable-xmlto";
+  patches = [
+    /* allow specifying alternatives alsa plugin locations using
+       export ALSA_PLUGIN_DIRS=$(nix-build -A alsaPlugins)/lib/alsa-lib
+       This patch should be improved:
+       See http://thread.gmane.org/gmane.linux.distributions.nixos/3435
+    */
+    ./alsa-plugin-dirs.patch
+
+    /* patch provided by larsc on irc.
+       it may be a compiler problem on mips; without this, alsa does not build
+       on mips, because lacks some symbols atomic_add/atomic_sub  */
+    ./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
@@ -23,6 +35,8 @@ stdenv.mkDerivation rec {
     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
@@ -30,6 +44,7 @@ stdenv.mkDerivation rec {
   };
 
   meta = {
+    homepage = http://www.alsa-project.org/;
     description = "ALSA, the Advanced Linux Sound Architecture libraries";
 
     longDescription = ''
@@ -37,20 +52,6 @@ stdenv.mkDerivation rec {
       MIDI functionality to the Linux-based operating system.
     '';
 
-    homepage = http://www.alsa-project.org/;
+    platforms = stdenv.lib.platforms.linux;
   };
-
-  patches = [
-    /* allow specifying alternatives alsa plugin locations using
-       export ALSA_PLUGIN_DIRS=$(nix-build -A alsaPlugins)/lib/alsa-lib
-       This patch should be improved:
-       See http://thread.gmane.org/gmane.linux.distributions.nixos/3435
-    */
-    ./alsa-plugin-dirs.patch
-
-    /* patch provided by larsc on irc.
-       it may be a compiler problem on mips; without this, alsa does not build
-       on mips, because lacks some symbols atomic_add/atomic_sub  */
-    ./mips-atomic.patch
-  ];
 }