summary refs log tree commit diff
path: root/pkgs/applications/audio/snd
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2021-10-28 23:29:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2021-10-28 23:29:00 +0000
commitbd4c61523afae303d70f3fbc3e3f5cb820fb082b (patch)
treea1e2a1caf509d2f7474680c3dbe1b09c9b7ca03b /pkgs/applications/audio/snd
parent2cdc3bd3cc3a220cf1e2a7183db17b2bd12e410b (diff)
downloadnixpkgs-bd4c61523afae303d70f3fbc3e3f5cb820fb082b.tar
nixpkgs-bd4c61523afae303d70f3fbc3e3f5cb820fb082b.tar.gz
nixpkgs-bd4c61523afae303d70f3fbc3e3f5cb820fb082b.tar.bz2
nixpkgs-bd4c61523afae303d70f3fbc3e3f5cb820fb082b.tar.lz
nixpkgs-bd4c61523afae303d70f3fbc3e3f5cb820fb082b.tar.xz
nixpkgs-bd4c61523afae303d70f3fbc3e3f5cb820fb082b.tar.zst
nixpkgs-bd4c61523afae303d70f3fbc3e3f5cb820fb082b.zip
snd: fix build on darwin
Diffstat (limited to 'pkgs/applications/audio/snd')
-rw-r--r--pkgs/applications/audio/snd/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/audio/snd/default.nix b/pkgs/applications/audio/snd/default.nix
index a798bf337e9..9561dc00d74 100644
--- a/pkgs/applications/audio/snd/default.nix
+++ b/pkgs/applications/audio/snd/default.nix
@@ -1,5 +1,6 @@
 { lib, stdenv, fetchurl, pkg-config
 , alsa-lib, fftw, gsl, motif, xorg
+, CoreServices, CoreMIDI
 }:
 
 stdenv.mkDerivation rec {
@@ -13,7 +14,9 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ pkg-config ];
 
-  buildInputs = [ alsa-lib fftw gsl motif ]
+  buildInputs = [ fftw gsl motif ]
+    ++ lib.optionals stdenv.isLinux [ alsa-lib ]
+    ++ lib.optionals stdenv.isDarwin [ CoreServices CoreMIDI ]
     ++ (with xorg; [ libXext libXft libXpm libXt ]);
 
   configureFlags = [ "--with-motif" ];