tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mpc: 0.27 -> 0.28
Upstream has also moved to github
Peter Hoeg
8 years ago
292f121f
2bfc977b
+16
-11
1 changed file
expand all
collapse all
unified
split
pkgs
applications
audio
mpc
default.nix
+16
-11
pkgs/applications/audio/mpc/default.nix
···
1
1
-
{ stdenv, fetchurl, mpd_clientlib }:
1
1
+
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, mpd_clientlib }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
-
version = "0.27";
5
4
name = "mpc-${version}";
5
5
+
version = "0.28";
6
6
7
7
-
src = fetchurl {
8
8
-
url = "http://www.musicpd.org/download/mpc/0/${name}.tar.xz";
9
9
-
sha256 = "0r10wsqxsi07gns6mfnicvpci0sbwwj4qa9iyr1ysrgadl5bx8j5";
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "MusicPlayerDaemon";
9
9
+
repo = "mpc";
10
10
+
rev = "v${version}";
11
11
+
sha256 = "1g8i4q5xsqdhidyjpvj6hzbhxacv27cb47ndv9k68whd80c5f9n9";
10
12
};
11
13
12
14
buildInputs = [ mpd_clientlib ];
13
15
14
14
-
preConfigure =
15
15
-
''
16
16
-
export LIBMPDCLIENT_LIBS=${mpd_clientlib}/lib/libmpdclient.${if stdenv.isDarwin then mpd_clientlib.majorVersion + ".dylib" else "so." + mpd_clientlib.majorVersion + ".0." + mpd_clientlib.minorVersion}
17
17
-
export LIBMPDCLIENT_CFLAGS=${mpd_clientlib}
18
18
-
'';
16
16
+
nativeBuildInputs = [ autoreconfHook pkgconfig ];
17
17
+
18
18
+
enableParallelBuilding = true;
19
19
+
20
20
+
preConfigure = ''
21
21
+
export LIBMPDCLIENT_LIBS=${mpd_clientlib}/lib/libmpdclient.${if stdenv.isDarwin then mpd_clientlib.majorVersion + ".dylib" else "so." + mpd_clientlib.majorVersion + ".0." + mpd_clientlib.minorVersion}
22
22
+
export LIBMPDCLIENT_CFLAGS=${mpd_clientlib}
23
23
+
'';
19
24
20
25
meta = with stdenv.lib; {
21
26
description = "A minimalist command line interface to MPD";
22
27
homepage = http://www.musicpd.org/clients/mpc/;
23
28
license = licenses.gpl2;
24
24
-
maintainers = [ maintainers.algorith ];
29
29
+
maintainers = with maintainers; [ algorith ];
25
30
platforms = with platforms; linux ++ darwin;
26
31
};
27
32
}