snd: fix build on darwin

This commit is contained in:
Mario Rodas 2021-10-28 23:29:00 +00:00
parent 2cdc3bd3cc
commit bd4c61523a
2 changed files with 7 additions and 2 deletions

View file

@ -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" ];

View file

@ -27945,7 +27945,9 @@ with pkgs;
snapper = callPackage ../tools/misc/snapper { };
snapper-gui = callPackage ../applications/misc/snapper-gui { };
snd = callPackage ../applications/audio/snd { };
snd = callPackage ../applications/audio/snd {
inherit (darwin.apple_sdk.frameworks) CoreServices CoreMIDI;
};
shntool = callPackage ../applications/audio/shntool { };