summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/audio/deadbeef/plugins/headerbar-gtk3.nix
blob: e3b474a345a4100dcce3690144c7df383d238bc0 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
{
  lib,
  stdenv,
  fetchFromGitHub,
  autoconf,
  automake,
  libtool,
  pkg-config,
  libxml2,
  deadbeef,
  glib,
  gtk3,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "deadbeef-headerbar-gtk3-plugin";
  version = "1.2";

  src = fetchFromGitHub {
    owner = "saivert";
    repo = "ddb_misc_headerbar_GTK3";
    rev = "v${finalAttrs.version}";
    sha256 = "1v1schvnps7ypjqgcbqi74a45w8r2gbhrawz7filym22h1qr9wn0";
  };

  nativeBuildInputs = [
    autoconf
    automake
    libtool
    pkg-config
    libxml2
  ];
  buildInputs = [
    deadbeef
    glib
    gtk3
  ];

  # Choose correct installation path
  # https://github.com/saivert/ddb_misc_headerbar_GTK3/commit/50ff75f76aa9d40761e352311670a894bfcd5cf6#r30319680
  makeFlags = [ "pkglibdir=$(out)/lib/deadbeef" ];

  preConfigure = "./autogen.sh";

  meta = {
    description = "Plug-in that adds GTK 3 header bar to the DeaDBeeF music player";
    homepage = "https://github.com/saivert/ddb_misc_headerbar_GTK3";
    license = lib.licenses.gpl2Plus;
    maintainers = [ lib.maintainers.jtojnar ];
    platforms = lib.platforms.linux;
  };
})