summary refs log tree commit diff
path: root/pkgs/tools/audio/mpdas/default.nix
blob: 70ae1f846430814cf9b8d8921a3da58e61874710 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchFromGitHub, pkgconfig, mpd_clientlib, curl }:

stdenv.mkDerivation rec {
  name = "mpdas-${version}";
  version = "0.4.4";

  src = fetchFromGitHub {
    owner = "hrkfdn";
    repo = "mpdas";
    rev = version;
    sha256 = "1i6i36jd582y3nm5plcrswqljf528hd23whp8zw06hwqnsgca5b6";
  };

  nativeBuildInputs = [ pkgconfig ];

  buildInputs = [ mpd_clientlib curl ];

  makeFlags = [ "CONFIG=/etc" "DESTDIR=" "PREFIX=$(out)" ];

  meta = with stdenv.lib; {
    description = "Music Player Daemon AudioScrobbler";
    homepage = http://50hz.ws/mpdas/;
    license = licenses.bsd3;
    maintainers = [ maintainers.taketwo ];
    platforms = platforms.all;
  };
}