Merge pull request #168281 from misuzu/moc-darwin

moc: build on darwin
This commit is contained in:
Pascal Wittmann 2022-04-19 09:19:31 +02:00 committed by GitHub
commit 9e6887b3e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,8 @@
{ lib, stdenv, fetchurl, pkg-config { lib, stdenv, fetchurl, pkg-config
, ncurses, db , popt, libtool , ncurses, db , popt, libtool
, libiconv, CoreServices
# Sound sub-systems # Sound sub-systems
, alsaSupport ? true, alsa-lib , alsaSupport ? (!stdenv.isDarwin), alsa-lib
, pulseSupport ? true, libpulseaudio, autoreconfHook , pulseSupport ? true, libpulseaudio, autoreconfHook
, jackSupport ? true, libjack2 , jackSupport ? true, libjack2
, ossSupport ? true , ossSupport ? true
@ -64,7 +65,8 @@ in stdenv.mkDerivation rec {
++ opt wavpackSupport wavpack ++ opt wavpackSupport wavpack
# Misc # Misc
++ opt curlSupport curl ++ opt curlSupport curl
++ opt samplerateSupport libsamplerate; ++ opt samplerateSupport libsamplerate
++ lib.optionals stdenv.isDarwin [ libiconv CoreServices ];
configureFlags = [ configureFlags = [
# Sound sub-systems # Sound sub-systems
@ -97,6 +99,6 @@ in stdenv.mkDerivation rec {
homepage = "http://moc.daper.net/"; homepage = "http://moc.daper.net/";
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [ aethelz pSub jagajaga ]; maintainers = with maintainers; [ aethelz pSub jagajaga ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View File

@ -27862,7 +27862,9 @@ with pkgs;
mnamer = callPackage ../applications/misc/mnamer { }; mnamer = callPackage ../applications/misc/mnamer { };
moc = callPackage ../applications/audio/moc { }; moc = callPackage ../applications/audio/moc {
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
mod-arpeggiator-lv2 = callPackage ../applications/audio/mod-arpeggiator-lv2 { }; mod-arpeggiator-lv2 = callPackage ../applications/audio/mod-arpeggiator-lv2 { };