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
-
{ stdenv, fetchurl, mpd_clientlib }:
2
3
stdenv.mkDerivation rec {
4
-
version = "0.27";
5
name = "mpc-${version}";
0
6
7
-
src = fetchurl {
8
-
url = "http://www.musicpd.org/download/mpc/0/${name}.tar.xz";
9
-
sha256 = "0r10wsqxsi07gns6mfnicvpci0sbwwj4qa9iyr1ysrgadl5bx8j5";
0
0
10
};
11
12
buildInputs = [ mpd_clientlib ];
13
14
-
preConfigure =
15
-
''
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
-
export LIBMPDCLIENT_CFLAGS=${mpd_clientlib}
18
-
'';
0
0
0
19
20
meta = with stdenv.lib; {
21
description = "A minimalist command line interface to MPD";
22
homepage = http://www.musicpd.org/clients/mpc/;
23
license = licenses.gpl2;
24
-
maintainers = [ maintainers.algorith ];
25
platforms = with platforms; linux ++ darwin;
26
};
27
}
···
1
+
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, mpd_clientlib }:
2
3
stdenv.mkDerivation rec {
0
4
name = "mpc-${version}";
5
+
version = "0.28";
6
7
+
src = fetchFromGitHub {
8
+
owner = "MusicPlayerDaemon";
9
+
repo = "mpc";
10
+
rev = "v${version}";
11
+
sha256 = "1g8i4q5xsqdhidyjpvj6hzbhxacv27cb47ndv9k68whd80c5f9n9";
12
};
13
14
buildInputs = [ mpd_clientlib ];
15
16
+
nativeBuildInputs = [ autoreconfHook pkgconfig ];
17
+
18
+
enableParallelBuilding = true;
19
+
20
+
preConfigure = ''
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
+
export LIBMPDCLIENT_CFLAGS=${mpd_clientlib}
23
+
'';
24
25
meta = with stdenv.lib; {
26
description = "A minimalist command line interface to MPD";
27
homepage = http://www.musicpd.org/clients/mpc/;
28
license = licenses.gpl2;
29
+
maintainers = with maintainers; [ algorith ];
30
platforms = with platforms; linux ++ darwin;
31
};
32
}