Skip to content

Commit cd77501

Browse files
cmus: move to pkgs/by-name
1 parent a8d610a commit cd77501

2 files changed

Lines changed: 14 additions & 17 deletions

File tree

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
aoSupport ? !stdenv.hostPlatform.isLinux,
1414
libao ? null,
1515
jackSupport ? false,
16-
libjack ? null,
16+
libjack2 ? null,
1717
samplerateSupport ? jackSupport,
1818
libsamplerate ? null,
1919
ossSupport ? false,
@@ -41,7 +41,7 @@
4141
discidSupport ? false,
4242
libdiscid ? null,
4343
ffmpegSupport ? true,
44-
ffmpeg ? null,
44+
ffmpeg_7 ? null,
4545
flacSupport ? true,
4646
flac ? null,
4747
madSupport ? true,
@@ -77,6 +77,8 @@ assert vorbisSupport -> !tremorSupport;
7777
assert tremorSupport -> !vorbisSupport;
7878

7979
let
80+
# https://github.com/cmus/cmus/issues/1459
81+
ffmpeg = ffmpeg_7;
8082

8183
mkFlag =
8284
b: f: dep:
@@ -95,17 +97,17 @@ let
9597
# Audio output
9698
(mkFlag alsaSupport "CONFIG_ALSA=y" alsa-lib)
9799
(mkFlag aoSupport "CONFIG_AO=y" libao)
98-
(mkFlag jackSupport "CONFIG_JACK=y" libjack)
100+
(mkFlag jackSupport "CONFIG_JACK=y" libjack2)
99101
(mkFlag samplerateSupport "CONFIG_SAMPLERATE=y" libsamplerate)
100102
(mkFlag ossSupport "CONFIG_OSS=y" alsa-oss)
101103
(mkFlag pulseaudioSupport "CONFIG_PULSE=y" libpulseaudio)
102104
(mkFlag sndioSupport "CONFIG_SNDIO=y" sndio)
103105
(mkFlag mprisSupport "CONFIG_MPRIS=y" systemd)
104106

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")
109111

110112
# Input file formats
111113
(mkFlag cddbSupport "CONFIG_CDDB=y" libcddb)
@@ -129,7 +131,7 @@ let
129131
(mkFlag mp4Support "CONFIG_MP4=y" mp4v2)
130132
(mkFlag aacSupport "CONFIG_AAC=y" faad2)
131133

132-
#(mkFlag vtxSupport "CONFIG_VTX=y" libayemu)
134+
#(mkFlag vtxSupport "CONFIG_VTX=y" libayemu)
133135
];
134136
in
135137

@@ -163,11 +165,11 @@ stdenv.mkDerivation rec {
163165

164166
makeFlags = [ "LD=$(CC)" ];
165167

166-
meta = with lib; {
168+
meta = {
167169
description = "Small, fast and powerful console music player for Linux and *BSD";
168170
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;
172174
};
173175
}

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10723,11 +10723,6 @@ with pkgs;
1072310723

1072410724
clipgrab = libsForQt5.callPackage ../applications/video/clipgrab { };
1072510725

10726-
cmus = callPackage ../applications/audio/cmus {
10727-
libjack = libjack2;
10728-
ffmpeg = ffmpeg_7;
10729-
};
10730-
1073110726
cni = callPackage ../applications/networking/cluster/cni { };
1073210727
cni-plugins = callPackage ../applications/networking/cluster/cni/plugins.nix { };
1073310728

0 commit comments

Comments
 (0)