mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
mpd: New nixpkg.
svn path=/nixpkgs/trunk/; revision=21148
This commit is contained in:
parent
d5337a70c8
commit
502f979532
44
pkgs/servers/mpd/default.nix
Normal file
44
pkgs/servers/mpd/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ stdenv, fetchurl, pkgconfig, glib, alsaSupport ? true, alsaLib
|
||||
, flacSupport ? true, flac, vorbisSupport ? true, libvorbis
|
||||
, madSupport ? true, libmad, id3tagSupport ? true, libid3tag
|
||||
, mikmodSupport ? true, libmikmod, cueSupport ? true, libcue
|
||||
}:
|
||||
let
|
||||
opt = stdenv.lib.optional;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mpd-0.15.9";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/musicpd/${name}.tar.bz2";
|
||||
sha256 = "1fv7ydxs755rsj4pijmsjjpvzlhy5idpvdi6p46nsq3ivjha2msa";
|
||||
};
|
||||
buildInputs = [ pkgconfig glib ]
|
||||
++ opt alsaSupport alsaLib
|
||||
++ opt flacSupport flac
|
||||
++ opt vorbisSupport libvorbis
|
||||
++ opt madSupport libmad
|
||||
++ opt id3tagSupport libid3tag
|
||||
++ opt mikmodSupport libmikmod
|
||||
++ opt cueSupport libcue;
|
||||
configureFlags = ''
|
||||
${if alsaSupport then "--enable-alsa" else "--disable-alsa"}
|
||||
${if flacSupport then "--enable-flac" else "--disable-flac"}
|
||||
${if vorbisSupport then "--enable-vorbis" else "--disable-vorbis"}
|
||||
${if madSupport then "--enable-mad" else "--disable-mad"}
|
||||
${if mikmodSupport then "--enable-mikmod" else "--disable-mikmod"}
|
||||
${if id3tagSupport then "--enable-id3" else "--disable-id3"}
|
||||
${if cueSupport then "--enable-cue" else "--disable-cue"}
|
||||
'';
|
||||
meta = {
|
||||
description = "A flexible, powerful daemon for playing music";
|
||||
longDescription = ''
|
||||
Music Player Daemon (MPD) is a flexible, powerful daemon for playing
|
||||
music. Through plugins and libraries it can play a variety of sound
|
||||
files while being controlled by its network protocol.
|
||||
'';
|
||||
homepage = http://mpd.wikia.com/;
|
||||
license = "GPLv2";
|
||||
maintainers = with stdenv.lib.maintainers; [ astsmtl ];
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
};
|
||||
}
|
@ -5401,6 +5401,11 @@ let
|
||||
inherit (pkgsOverriden) fetchurl stdenv apacheHttpd python;
|
||||
};
|
||||
|
||||
mpd = import ../servers/mpd {
|
||||
inherit stdenv fetchurl pkgconfig glib alsaLib flac libvorbis libmad
|
||||
libid3tag libmikmod libcue;
|
||||
};
|
||||
|
||||
myserver = import ../servers/http/myserver {
|
||||
inherit fetchurl stdenv libgcrypt libevent libidn gnutls libxml2
|
||||
zlib texinfo cppunit xz;
|
||||
|
Loading…
Reference in New Issue
Block a user