forked from mirrors/nixpkgs
Merge pull request #1002 from DriesVanDaele/master
add the mpc (mpd cli client) package
This commit is contained in:
commit
d1ab7ca2ec
27
pkgs/applications/audio/mpc/default.nix
Executable file
27
pkgs/applications/audio/mpc/default.nix
Executable file
|
@ -0,0 +1,27 @@
|
|||
{ stdenv, fetchurl, mpd_clientlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.23";
|
||||
name = "mpc-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.musicpd.org/download/mpc/0/${name}.tar.bz2";
|
||||
sha256 = "1ir96wfgq5qfdd2s06zfycv38g3bhn3bpndwx9hwf1w507rvifi9";
|
||||
};
|
||||
|
||||
buildInputs = [ mpd_clientlib ];
|
||||
|
||||
preConfigure =
|
||||
''
|
||||
export LIBMPDCLIENT_LIBS=${mpd_clientlib}/lib/libmpdclient.so.${mpd_clientlib.majorVersion}.0.${mpd_clientlib.minorVersion}
|
||||
export LIBMPDCLIENT_CFLAGS=${mpd_clientlib}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A minimalist command line interface to MPD";
|
||||
homepage = http://www.musicpd.org/clients/mpc/;
|
||||
license = "GPL2";
|
||||
maintainers = [ stdenv.lib.maintainers.algorith ];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
alphabetically sorted. */
|
||||
|
||||
aforemny = "Alexander Foremny <alexanderforemny@googlemail.com>";
|
||||
algorith = "Dries Van Daele <dries_van_daele@telenet.be>";
|
||||
all = "Nix Committers <nix-commits@lists.science.uu.nl>";
|
||||
amiddelk = "Arie Middelkoop <amiddelk@gmail.com>";
|
||||
amorsillo = "Andrew Morsillo <andrew.morsillo@gmail.com>";
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
{ stdenv, fetchurl, doxygen }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.8";
|
||||
version = "${passthru.majorVersion}.${passthru.minorVersion}";
|
||||
name = "libmpdclient-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.musicpd.org/download/libmpdclient/2/${name}.tar.bz2";
|
||||
sha256 = "1qwjkb56rsbk0hwhg7fl15d6sf580a19gh778zcdg374j4yym3hh";
|
||||
|
@ -10,6 +11,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ doxygen ];
|
||||
|
||||
passthru = {
|
||||
majorVersion = "2";
|
||||
minorVersion = "8";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Client library for MPD (music player daemon)";
|
||||
homepage = http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki;
|
||||
|
|
|
@ -8211,6 +8211,8 @@ let
|
|||
mpg123 = callPackage ../applications/audio/mpg123 { };
|
||||
|
||||
mpg321 = callPackage ../applications/audio/mpg321 { };
|
||||
|
||||
mpc_cli = callPackage ../applications/audio/mpc { };
|
||||
|
||||
ncmpcpp = callPackage ../applications/audio/ncmpcpp { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue