mpd: Update to 0.17.3
Additionally, turn on a lot more features in mpd by adding dependencies. Can be controlled by xxxSupport flags, as before. By default, everything is enabled.
This commit is contained in:
parent
bc8a6e6c19
commit
bc331e230e
@ -1,39 +1,85 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, glib, alsaSupport ? true, alsaLib
|
{ stdenv, fetchurl, pkgconfig, glib, systemd
|
||||||
, flacSupport ? true, flac, vorbisSupport ? true, libvorbis
|
, alsaSupport ? true, alsaLib
|
||||||
, madSupport ? true, libmad, id3tagSupport ? true, libid3tag
|
, flacSupport ? true, flac
|
||||||
, mikmodSupport ? true, libmikmod, cueSupport ? true, libcue
|
, vorbisSupport ? true, libvorbis
|
||||||
|
, madSupport ? true, libmad
|
||||||
|
, id3tagSupport ? true, libid3tag
|
||||||
|
, mikmodSupport ? true, libmikmod
|
||||||
, shoutSupport ? true, libshout
|
, shoutSupport ? true, libshout
|
||||||
|
, sqliteSupport ? true, sqlite
|
||||||
|
, curlSupport ? true, curl
|
||||||
|
, soupSupport ? true, libsoup
|
||||||
|
, audiofileSupport ? true, audiofile
|
||||||
|
, bzip2Support ? true, bzip2
|
||||||
|
, ffadoSupport ? true, ffado
|
||||||
|
, ffmpegSupport ? true, ffmpeg
|
||||||
|
, fluidsynthSupport ? true, fluidsynth
|
||||||
|
, zipSupport ? true, zziplib
|
||||||
|
, samplerateSupport ? true, libsamplerate
|
||||||
|
, mmsSupport ? true, libmms
|
||||||
|
, mpg123Support ? true, mpg123
|
||||||
|
, aacSupport ? true, faad2
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
opt = stdenv.lib.optional;
|
opt = stdenv.lib.optional;
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
mkFlag = c: f: if c then "--enable-${f}" else "--disable-${f}";
|
||||||
name = "mpd-0.16.8";
|
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
name = "mpd-0.17.3";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/musicpd/${name}.tar.bz2";
|
url = "mirror://sourceforge/musicpd/${name}.tar.bz2";
|
||||||
sha256 = "35183ae4a706391f5d739e4378b74f516952adda09a260fecfd531a58b0fff17";
|
sha256 = "1iilimlyhw22lpbqiab4qprznxg9c4d68fkrr9jww765b4c7x1ip";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgconfig glib ]
|
buildInputs = [ pkgconfig glib systemd ]
|
||||||
++ opt alsaSupport alsaLib
|
++ opt alsaSupport alsaLib
|
||||||
++ opt flacSupport flac
|
++ opt flacSupport flac
|
||||||
++ opt vorbisSupport libvorbis
|
++ opt vorbisSupport libvorbis
|
||||||
++ opt madSupport libmad
|
++ opt madSupport libmad
|
||||||
++ opt id3tagSupport libid3tag
|
++ opt id3tagSupport libid3tag
|
||||||
++ opt mikmodSupport libmikmod
|
++ opt mikmodSupport libmikmod
|
||||||
++ opt cueSupport libcue
|
++ opt shoutSupport libshout
|
||||||
++ opt shoutSupport libshout;
|
++ opt sqliteSupport sqlite
|
||||||
|
++ opt curlSupport curl
|
||||||
|
++ opt soupSupport libsoup
|
||||||
|
++ opt bzip2Support bzip2
|
||||||
|
++ opt audiofileSupport audiofile
|
||||||
|
++ opt ffadoSupport ffado
|
||||||
|
++ opt ffmpegSupport ffmpeg
|
||||||
|
++ opt fluidsynthSupport fluidsynth
|
||||||
|
++ opt samplerateSupport libsamplerate
|
||||||
|
++ opt mmsSupport libmms
|
||||||
|
++ opt mpg123Support mpg123
|
||||||
|
++ opt aacSupport faad2
|
||||||
|
++ opt zipSupport zziplib;
|
||||||
|
|
||||||
configureFlags = ''
|
configureFlags = [
|
||||||
${if alsaSupport then "--enable-alsa" else "--disable-alsa"}
|
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
||||||
${if flacSupport then "--enable-flac" else "--disable-flac"}
|
(mkFlag alsaSupport "alsa")
|
||||||
${if vorbisSupport then "--enable-vorbis" else "--disable-vorbis"}
|
(mkFlag flacSupport "flac")
|
||||||
${if madSupport then "--enable-mad" else "--disable-mad"}
|
(mkFlag vorbisSupport "vorbis")
|
||||||
${if mikmodSupport then "--enable-mikmod" else "--disable-mikmod"}
|
(mkFlag vorbisSupport "vorbis-encoder")
|
||||||
${if id3tagSupport then "--enable-id3" else "--disable-id3"}
|
(mkFlag madSupport "mad")
|
||||||
${if cueSupport then "--enable-cue" else "--disable-cue"}
|
(mkFlag mikmodSupport "mikmod")
|
||||||
${if shoutSupport then "--enable-shout" else "--disable-shout"}
|
(mkFlag id3tagSupport "id3")
|
||||||
'';
|
(mkFlag shoutSupport "shout")
|
||||||
|
(mkFlag sqliteSupport "sqlite")
|
||||||
|
(mkFlag curlSupport "curl")
|
||||||
|
(mkFlag soupSupport "soup")
|
||||||
|
(mkFlag audiofileSupport "audiofile")
|
||||||
|
(mkFlag bzip2Support "bzip2")
|
||||||
|
(mkFlag ffadoSupport "ffado")
|
||||||
|
(mkFlag ffmpegSupport "ffmpeg")
|
||||||
|
(mkFlag fluidsynthSupport "fluidsynth")
|
||||||
|
(mkFlag zipSupport "zzip")
|
||||||
|
(mkFlag samplerateSupport "lsr")
|
||||||
|
(mkFlag mmsSupport "mms")
|
||||||
|
(mkFlag mpg123Support "mpg123")
|
||||||
|
(mkFlag aacSupport "aac")
|
||||||
|
];
|
||||||
|
|
||||||
NIX_LDFLAGS = ''
|
NIX_LDFLAGS = ''
|
||||||
${if shoutSupport then "-lshout" else ""}
|
${if shoutSupport then "-lshout" else ""}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user