mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
cmus: fix on darwin (using gcc)
This commit is contained in:
parent
1e324cdd57
commit
5afd6a9bea
|
@ -1,4 +1,5 @@
|
|||
{ stdenv, fetchFromGitHub, ncurses, pkgconfig, gcc
|
||||
{ stdenv, fetchFromGitHub, ncurses, pkgconfig
|
||||
, gcc, libiconv, CoreAudio
|
||||
|
||||
, alsaSupport ? stdenv.isLinux, alsaLib ? null
|
||||
# simple fallback for everyone else
|
||||
|
@ -18,7 +19,7 @@
|
|||
, cddbSupport ? true, libcddb ? null
|
||||
, cdioSupport ? true, libcdio ? null
|
||||
, cueSupport ? true, libcue ? null
|
||||
, discidSupport ? true, libdiscid ? null
|
||||
, discidSupport ? (!stdenv.isDarwin), libdiscid ? null
|
||||
, ffmpegSupport ? true, ffmpeg ? null
|
||||
, flacSupport ? true, flac ? null
|
||||
, madSupport ? true, libmad ? null
|
||||
|
@ -109,13 +110,16 @@ stdenv.mkDerivation rec {
|
|||
"CONFIG_WAV=y"
|
||||
] ++ concatMap (a: a.flags) opts);
|
||||
|
||||
buildInputs = [ ncurses pkgconfig gcc ] ++ concatMap (a: a.deps) opts;
|
||||
buildInputs = [ ncurses pkgconfig ]
|
||||
++ stdenv.lib.optional stdenv.cc.isClang gcc
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv CoreAudio ]
|
||||
++ concatMap (a: a.deps) opts;
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "Small, fast and powerful console music player for Linux and *BSD";
|
||||
homepage = https://cmus.github.io/;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
maintainers = [ stdenv.lib.maintainers.oxij ];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.oxij ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -12690,6 +12690,7 @@ with pkgs;
|
|||
cmatrix = callPackage ../applications/misc/cmatrix { };
|
||||
|
||||
cmus = callPackage ../applications/audio/cmus {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreAudio;
|
||||
libjack = libjack2;
|
||||
libcdio = libcdio082;
|
||||
ffmpeg = ffmpeg_2;
|
||||
|
|
Loading…
Reference in a new issue