16 alsaSupport ? (!stdenv.hostPlatform.isDarwin),
31 modplugSupport ? true,
35 musepackSupport ? true,
45 sndfileSupport ? true,
47 wavpackSupport ? true,
52 samplerateSupport ? true,
59 version = "2.6-alpha3-unstable-2019-09-14";
62 url = "svn://svn.daper.net/moc/trunk";
64 hash = "sha256-JksJxHQgQ8hPTFtLvEvZuFh2lflDNrEmDTMWWwVnjZQ=";
70 url = "https://cygwin.com/cgit/cygwin-packages/moc/plain/Support-for-recent-ffmpeg-change.patch?id=ab70f1306b8416852915be4347003aac3bdc216";
71 hash = "sha256-5hLEFBJ+7Nvxn6pNj4bngcg2qJsCzxiuP6yEj+7tvs0=";
77 url = "https://cygwin.com/cgit/cygwin-packages/moc/plain/ffmpeg-7.0.patch?id=ab70f1306b8416852915be4347003aac3bdc216e";
78 hash = "sha256-dYw6DNyw61MGfv+GdBz5Dtrr9fVph1tf7vxexWONwF8=";
82 ./use-ax-check-compile-flag.patch
83 ] ++ lib.optional pulseSupport ./pulseaudio.patch;
103 ++ lib.optional alsaSupport alsa-lib
104 ++ lib.optional pulseSupport libpulseaudio
105 ++ lib.optional jackSupport libjack2
107 ++ lib.optional (aacSupport || mp3Support) libid3tag
108 ++ lib.optional aacSupport faad2
109 ++ lib.optional flacSupport flac
110 ++ lib.optional midiSupport timidity
111 ++ lib.optional modplugSupport libmodplug
112 ++ lib.optional mp3Support libmad
113 ++ lib.optionals musepackSupport [
118 ++ lib.optional vorbisSupport libvorbis
119 ++ lib.optional speexSupport speex
120 ++ lib.optional ffmpegSupport ffmpeg
121 ++ lib.optional sndfileSupport libsndfile
122 ++ lib.optional wavpackSupport wavpack
124 ++ lib.optional curlSupport curl
125 ++ lib.optional samplerateSupport libsamplerate
126 ++ lib.optionals stdenv.hostPlatform.isDarwin [
133 (lib.withFeature alsaSupport "alsa")
134 (lib.withFeature pulseSupport "pulse")
135 (lib.withFeature jackSupport "jack")
136 (lib.withFeature ossSupport "oss")
138 (lib.withFeature aacSupport "aac")
139 (lib.withFeature flacSupport "flac")
140 (lib.withFeature midiSupport "timidity")
141 (lib.withFeature modplugSupport "modplug")
142 (lib.withFeature mp3Support "mp3")
143 (lib.withFeature musepackSupport "musepack")
144 (lib.withFeature vorbisSupport "vorbis")
145 (lib.withFeature speexSupport "speex")
146 (lib.withFeature ffmpegSupport "ffmpeg")
147 (lib.withFeature sndfileSupport "sndfile")
148 (lib.withFeature wavpackSupport "wavpack")
150 (lib.withFeature curlSupport "curl")
151 (lib.withFeature samplerateSupport "samplerate")
152 ("--enable-debug=" + (if withDebug then "yes" else "no"))
158 description = "Terminal audio player designed to be powerful and easy to use";
159 homepage = "http://moc.daper.net/";
160 license = licenses.gpl2;
161 maintainers = with maintainers; [
166 platforms = platforms.unix;
167 mainProgram = "mocp";