Merge pull request #224838 from mistydemeo/xmp_build_darwin
XMP: add Darwin support
This commit is contained in:
commit
8aff71f5da
@ -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 ];
|
||||
}
|
||||
|
@ -35068,7 +35068,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