1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 16:42:09 +00:00
nixpkgs/pkgs/tools/misc/mpdscribble/default.nix
2015-03-14 12:23:23 +00:00

27 lines
912 B
Nix

{ stdenv, fetchurl, mpd_clientlib, curl, glib, pkgconfig }:
stdenv.mkDerivation rec {
name = "mpdscribble-${version}";
version = "0.22";
src = fetchurl {
url =
"http://www.musicpd.org/download/mpdscribble/${version}/mpdscribble-${version}.tar.bz2";
sha256 = "0hgb7xh3w455m00lpldwkyrc5spjn3q1pl2ry3kf7w3hiigjpphw";
};
buildInputs = [ mpd_clientlib curl glib pkgconfig ];
preConfigure = ''
export LIBMPDCLIENT_LIBS=${mpd_clientlib}/lib/libmpdclient.so.${mpd_clientlib.majorVersion}.0.${mpd_clientlib.minorVersion}
export LIBMPDCLIENT_CFLAGS=${mpd_clientlib}
'';
meta = with stdenv.lib; {
description = "A Music Player Daemon (MPD) client which submits information about tracks beeing played to a scrobbler (e.g. last.fm)";
homepage = http://mpd.wikia.com/wiki/Client:mpdscribble;
license = licenses.gpl2;
maintainers = [ maintainers.matthiasbeyer ];
};
}