xmp: add Darwin support
XMP supports Darwin so long as CoreAudio is available. This PR makes alsa Linux-specific and adds the appropriate Darwin dependencies.
This commit is contained in:
parent
c5e6843b33
commit
fcb0ec3f59
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, pkg-config, alsa-lib, libxmp }:
|
||||
{ lib, stdenv, fetchurl, pkg-config, alsa-lib, libxmp, AudioUnit, CoreAudio }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xmp";
|
||||
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
|
||||
description = "Extended module player";
|
||||
homepage = "https://xmp.sourceforge.net/";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
src = fetchurl {
|
||||
@ -17,5 +17,7 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ alsa-lib libxmp ];
|
||||
buildInputs = [ libxmp ]
|
||||
++ lib.optionals stdenv.isLinux [ alsa-lib ]
|
||||
++ lib.optionals stdenv.isDarwin [ AudioUnit CoreAudio ];
|
||||
}
|
||||
|
@ -34955,7 +34955,10 @@ with pkgs;
|
||||
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
||||
};
|
||||
|
||||
xmp = callPackage ../applications/audio/xmp { };
|
||||
xmp = callPackage ../applications/audio/xmp {
|
||||
inherit (darwin.apple_sdk.frameworks) AudioUnit;
|
||||
inherit (darwin.apple_sdk.frameworks) CoreAudio;
|
||||
};
|
||||
|
||||
xnee = callPackage ../tools/X11/xnee { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user