mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
292f121fb2
Upstream has also moved to github
33 lines
1011 B
Nix
33 lines
1011 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, mpd_clientlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "mpc-${version}";
|
|
version = "0.28";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MusicPlayerDaemon";
|
|
repo = "mpc";
|
|
rev = "v${version}";
|
|
sha256 = "1g8i4q5xsqdhidyjpvj6hzbhxacv27cb47ndv9k68whd80c5f9n9";
|
|
};
|
|
|
|
buildInputs = [ mpd_clientlib ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
preConfigure = ''
|
|
export LIBMPDCLIENT_LIBS=${mpd_clientlib}/lib/libmpdclient.${if stdenv.isDarwin then mpd_clientlib.majorVersion + ".dylib" else "so." + mpd_clientlib.majorVersion + ".0." + mpd_clientlib.minorVersion}
|
|
export LIBMPDCLIENT_CFLAGS=${mpd_clientlib}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A minimalist command line interface to MPD";
|
|
homepage = http://www.musicpd.org/clients/mpc/;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ algorith ];
|
|
platforms = with platforms; linux ++ darwin;
|
|
};
|
|
}
|