mpd: fix build on darwin
This commit is contained in:
parent
1b0b0d3bb2
commit
bcc36ee23e
@ -11,6 +11,6 @@ stdenv.mkDerivation rec {
|
|||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.nasm.us/;
|
homepage = http://www.nasm.us/;
|
||||||
description = "An 80x86 and x86-64 assembler designed for portability and modularity";
|
description = "An 80x86 and x86-64 assembler designed for portability and modularity";
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,6 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = http://www.tortall.net/projects/yasm/;
|
homepage = http://www.tortall.net/projects/yasm/;
|
||||||
description = "Complete rewrite of the NASM assembler";
|
description = "Complete rewrite of the NASM assembler";
|
||||||
license = "BSD";
|
license = "BSD";
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
|
|||||||
"--enable-avresample"
|
"--enable-avresample"
|
||||||
"--enable-runtime-cpudetect"
|
"--enable-runtime-cpudetect"
|
||||||
]
|
]
|
||||||
++ stdenv.lib.optional subtitleSupport "--enable-libass"
|
++ stdenv.lib.optional (!stdenv.isDarwin && subtitleSupport) "--enable-libass"
|
||||||
++ stdenv.lib.optional mp3Support "--enable-libmp3lame"
|
++ stdenv.lib.optional mp3Support "--enable-libmp3lame"
|
||||||
++ stdenv.lib.optional speexSupport "--enable-libspeex"
|
++ stdenv.lib.optional speexSupport "--enable-libspeex"
|
||||||
++ stdenv.lib.optional theoraSupport "--enable-libtheora"
|
++ stdenv.lib.optional theoraSupport "--enable-libtheora"
|
||||||
@ -55,13 +55,12 @@ stdenv.mkDerivation rec {
|
|||||||
++ stdenv.lib.optional faacSupport "--enable-libfaac --enable-nonfree"
|
++ stdenv.lib.optional faacSupport "--enable-libfaac --enable-nonfree"
|
||||||
++ stdenv.lib.optional dc1394Support "--enable-libdc1394"
|
++ stdenv.lib.optional dc1394Support "--enable-libdc1394"
|
||||||
++ stdenv.lib.optional x11grabSupport "--enable-x11grab"
|
++ stdenv.lib.optional x11grabSupport "--enable-x11grab"
|
||||||
++ stdenv.lib.optional playSupport "--enable-ffplay"
|
++ stdenv.lib.optional (!stdenv.isDarwin && playSupport) "--enable-ffplay"
|
||||||
++ stdenv.lib.optional freetypeSupport "--enable-libfreetype --enable-fontconfig"
|
++ stdenv.lib.optional freetypeSupport "--enable-libfreetype --enable-fontconfig"
|
||||||
++ stdenv.lib.optional fdkAACSupport "--enable-libfdk_aac --enable-nonfree"
|
++ stdenv.lib.optional fdkAACSupport "--enable-libfdk_aac --enable-nonfree"
|
||||||
++ stdenv.lib.optional gnutlsSupport "--enable-gnutls";
|
++ stdenv.lib.optional gnutlsSupport "--enable-gnutls";
|
||||||
|
|
||||||
buildInputs = [ pkgconfig lame yasm zlib bzip2 alsaLib texinfo perl ]
|
buildInputs = [ pkgconfig lame yasm zlib bzip2 texinfo perl ]
|
||||||
++ stdenv.lib.optional subtitleSupport libass
|
|
||||||
++ stdenv.lib.optional mp3Support lame
|
++ stdenv.lib.optional mp3Support lame
|
||||||
++ stdenv.lib.optional speexSupport speex
|
++ stdenv.lib.optional speexSupport speex
|
||||||
++ stdenv.lib.optional theoraSupport libtheora
|
++ stdenv.lib.optional theoraSupport libtheora
|
||||||
@ -75,10 +74,12 @@ stdenv.mkDerivation rec {
|
|||||||
++ stdenv.lib.optional faacSupport faac
|
++ stdenv.lib.optional faacSupport faac
|
||||||
++ stdenv.lib.optional dc1394Support libdc1394
|
++ stdenv.lib.optional dc1394Support libdc1394
|
||||||
++ stdenv.lib.optionals x11grabSupport [ libXext libXfixes ]
|
++ stdenv.lib.optionals x11grabSupport [ libXext libXfixes ]
|
||||||
++ stdenv.lib.optional playSupport SDL
|
++ stdenv.lib.optional (!stdenv.isDarwin && playSupport) SDL
|
||||||
++ stdenv.lib.optionals freetypeSupport [ freetype fontconfig ]
|
++ stdenv.lib.optionals freetypeSupport [ freetype fontconfig ]
|
||||||
++ stdenv.lib.optional fdkAACSupport fdk_aac
|
++ stdenv.lib.optional fdkAACSupport fdk_aac
|
||||||
++ stdenv.lib.optional gnutlsSupport gnutls;
|
++ stdenv.lib.optional gnutlsSupport gnutls
|
||||||
|
++ stdenv.lib.optional (!stdenv.isDarwin && subtitleSupport) libass
|
||||||
|
++ stdenv.lib.optional (!stdenv.isDarwin) alsaLib;
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "Client library for MPD (music player daemon)";
|
description = "Client library for MPD (music player daemon)";
|
||||||
homepage = http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki;
|
homepage = http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki;
|
||||||
license = "GPLv2";
|
license = "GPLv2";
|
||||||
platforms = with stdenv.lib.platforms; linux;
|
platforms = with stdenv.lib.platforms; unix;
|
||||||
maintainers = [ stdenv.lib.maintainers.mornfall ];
|
maintainers = [ stdenv.lib.maintainers.mornfall ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -80,6 +80,7 @@ in stdenv.mkDerivation rec {
|
|||||||
(mkFlag mmsSupport "mms")
|
(mkFlag mmsSupport "mms")
|
||||||
(mkFlag mpg123Support "mpg123")
|
(mkFlag mpg123Support "mpg123")
|
||||||
(mkFlag aacSupport "aac")
|
(mkFlag aacSupport "aac")
|
||||||
|
(mkFlag stdenv.isDarwin "osx")
|
||||||
"--enable-debugging" ]
|
"--enable-debugging" ]
|
||||||
++ opt stdenv.isLinux
|
++ opt stdenv.isLinux
|
||||||
"--with-systemdsystemunitdir=$(out)/etc/systemd/system";
|
"--with-systemdsystemunitdir=$(out)/etc/systemd/system";
|
||||||
|
@ -6606,12 +6606,7 @@ let
|
|||||||
|
|
||||||
mod_wsgi = callPackage ../servers/http/apache-modules/mod_wsgi { };
|
mod_wsgi = callPackage ../servers/http/apache-modules/mod_wsgi { };
|
||||||
|
|
||||||
mpd = callPackage ../servers/mpd {
|
mpd = callPackage ../servers/mpd { };
|
||||||
# resolve the "stray '@' in program" errors
|
|
||||||
stdenv = if stdenv.isDarwin
|
|
||||||
then overrideGCC stdenv gccApple
|
|
||||||
else stdenv;
|
|
||||||
};
|
|
||||||
|
|
||||||
mpd_clientlib = callPackage ../servers/mpd/clientlib.nix { };
|
mpd_clientlib = callPackage ../servers/mpd/clientlib.nix { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user