Merge pull request #224838 from mistydemeo/xmp_build_darwin

XMP: add Darwin support
This commit is contained in:
Weijia Wang 2023-04-13 10:54:03 +03:00 committed by GitHub
commit 8aff71f5da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

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

View File

@ -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 { };