forked from mirrors/nixpkgs
mpc: 0.27 -> 0.28
Upstream has also moved to github
This commit is contained in:
parent
2bfc977b6e
commit
292f121fb2
|
@ -1,27 +1,32 @@
|
||||||
{ stdenv, fetchurl, mpd_clientlib }:
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, mpd_clientlib }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.27";
|
|
||||||
name = "mpc-${version}";
|
name = "mpc-${version}";
|
||||||
|
version = "0.28";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "http://www.musicpd.org/download/mpc/0/${name}.tar.xz";
|
owner = "MusicPlayerDaemon";
|
||||||
sha256 = "0r10wsqxsi07gns6mfnicvpci0sbwwj4qa9iyr1ysrgadl5bx8j5";
|
repo = "mpc";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1g8i4q5xsqdhidyjpvj6hzbhxacv27cb47ndv9k68whd80c5f9n9";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ mpd_clientlib ];
|
buildInputs = [ mpd_clientlib ];
|
||||||
|
|
||||||
preConfigure =
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||||
''
|
|
||||||
export LIBMPDCLIENT_LIBS=${mpd_clientlib}/lib/libmpdclient.${if stdenv.isDarwin then mpd_clientlib.majorVersion + ".dylib" else "so." + mpd_clientlib.majorVersion + ".0." + mpd_clientlib.minorVersion}
|
enableParallelBuilding = true;
|
||||||
export LIBMPDCLIENT_CFLAGS=${mpd_clientlib}
|
|
||||||
'';
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "A minimalist command line interface to MPD";
|
description = "A minimalist command line interface to MPD";
|
||||||
homepage = http://www.musicpd.org/clients/mpc/;
|
homepage = http://www.musicpd.org/clients/mpc/;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = [ maintainers.algorith ];
|
maintainers = with maintainers; [ algorith ];
|
||||||
platforms = with platforms; linux ++ darwin;
|
platforms = with platforms; linux ++ darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue