about summary refs log tree commit diff
path: root/pkgs/applications/audio/deadbeef/plugins/mpris2.nix
blob: d0b0d0a86567bc225431ae2eb5ab52754646aeba (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
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, stdenv
, fetchFromGitHub
, deadbeef
, autoreconfHook
, pkg-config
, glib
}:

let
  pname = "deadbeef-mpris2-plugin";
  version = "1.14";
in stdenv.mkDerivation {
  inherit pname version;

  src = fetchFromGitHub {
    owner = "DeaDBeeF-Player";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-w7ccIhcPjbjs18kb3ZdM9JtSail9ik3uyAc40T8lHho=";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  buildInputs = [
    deadbeef
    glib
  ];

  meta = with lib; {
    description = "MPRISv2 plugin for the DeaDBeeF music player";
    homepage = "https://github.com/DeaDBeeF-Player/deadbeef-mpris2-plugin/";
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = [ maintainers.abbradar ];
  };
}