|
13 | 13 | aoSupport ? !stdenv.hostPlatform.isLinux, |
14 | 14 | libao ? null, |
15 | 15 | jackSupport ? false, |
16 | | - libjack ? null, |
| 16 | + libjack2 ? null, |
17 | 17 | samplerateSupport ? jackSupport, |
18 | 18 | libsamplerate ? null, |
19 | 19 | ossSupport ? false, |
|
41 | 41 | discidSupport ? false, |
42 | 42 | libdiscid ? null, |
43 | 43 | ffmpegSupport ? true, |
44 | | - ffmpeg ? null, |
| 44 | + ffmpeg_7 ? null, |
45 | 45 | flacSupport ? true, |
46 | 46 | flac ? null, |
47 | 47 | madSupport ? true, |
@@ -77,6 +77,8 @@ assert vorbisSupport -> !tremorSupport; |
77 | 77 | assert tremorSupport -> !vorbisSupport; |
78 | 78 |
|
79 | 79 | let |
| 80 | + # https://github.com/cmus/cmus/issues/1459 |
| 81 | + ffmpeg = ffmpeg_7; |
80 | 82 |
|
81 | 83 | mkFlag = |
82 | 84 | b: f: dep: |
|
95 | 97 | # Audio output |
96 | 98 | (mkFlag alsaSupport "CONFIG_ALSA=y" alsa-lib) |
97 | 99 | (mkFlag aoSupport "CONFIG_AO=y" libao) |
98 | | - (mkFlag jackSupport "CONFIG_JACK=y" libjack) |
| 100 | + (mkFlag jackSupport "CONFIG_JACK=y" libjack2) |
99 | 101 | (mkFlag samplerateSupport "CONFIG_SAMPLERATE=y" libsamplerate) |
100 | 102 | (mkFlag ossSupport "CONFIG_OSS=y" alsa-oss) |
101 | 103 | (mkFlag pulseaudioSupport "CONFIG_PULSE=y" libpulseaudio) |
102 | 104 | (mkFlag sndioSupport "CONFIG_SNDIO=y" sndio) |
103 | 105 | (mkFlag mprisSupport "CONFIG_MPRIS=y" systemd) |
104 | 106 |
|
105 | | - #(mkFlag artsSupport "CONFIG_ARTS=y") |
106 | | - #(mkFlag roarSupport "CONFIG_ROAR=y") |
107 | | - #(mkFlag sunSupport "CONFIG_SUN=y") |
108 | | - #(mkFlag waveoutSupport "CONFIG_WAVEOUT=y") |
| 107 | + #(mkFlag artsSupport "CONFIG_ARTS=y") |
| 108 | + #(mkFlag roarSupport "CONFIG_ROAR=y") |
| 109 | + #(mkFlag sunSupport "CONFIG_SUN=y") |
| 110 | + #(mkFlag waveoutSupport "CONFIG_WAVEOUT=y") |
109 | 111 |
|
110 | 112 | # Input file formats |
111 | 113 | (mkFlag cddbSupport "CONFIG_CDDB=y" libcddb) |
|
129 | 131 | (mkFlag mp4Support "CONFIG_MP4=y" mp4v2) |
130 | 132 | (mkFlag aacSupport "CONFIG_AAC=y" faad2) |
131 | 133 |
|
132 | | - #(mkFlag vtxSupport "CONFIG_VTX=y" libayemu) |
| 134 | + #(mkFlag vtxSupport "CONFIG_VTX=y" libayemu) |
133 | 135 | ]; |
134 | 136 | in |
135 | 137 |
|
@@ -163,11 +165,11 @@ stdenv.mkDerivation rec { |
163 | 165 |
|
164 | 166 | makeFlags = [ "LD=$(CC)" ]; |
165 | 167 |
|
166 | | - meta = with lib; { |
| 168 | + meta = { |
167 | 169 | description = "Small, fast and powerful console music player for Linux and *BSD"; |
168 | 170 | homepage = "https://cmus.github.io/"; |
169 | | - license = licenses.gpl2; |
170 | | - maintainers = [ maintainers.oxij ]; |
171 | | - platforms = platforms.linux ++ platforms.darwin; |
| 171 | + license = lib.licenses.gpl2Only; |
| 172 | + maintainers = with lib.maintainers; [ oxij ]; |
| 173 | + platforms = with lib.platforms; linux ++ darwin; |
172 | 174 | }; |
173 | 175 | } |
0 commit comments