about summary refs log tree commit diff
path: root/pkgs/applications/audio/deadbeef/plugins
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2018-08-28 23:03:24 +0200
committerJan Tojnar <jtojnar@gmail.com>2018-08-28 23:33:59 +0200
commit89586ed0d030fa2e8cbe07e53bd875602817d6ca (patch)
tree4dcb9f9ce8d74933edd14464ec74e67e5b7ba198 /pkgs/applications/audio/deadbeef/plugins
parent045c4d8f646db2a19fed990e1f29c256a5ceae8c (diff)
deadbeefPlugins.headerbar-gtk3: init at 1.2
Diffstat (limited to 'pkgs/applications/audio/deadbeef/plugins')
-rw-r--r--pkgs/applications/audio/deadbeef/plugins/headerbar-gtk3.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/audio/deadbeef/plugins/headerbar-gtk3.nix b/pkgs/applications/audio/deadbeef/plugins/headerbar-gtk3.nix
new file mode 100644
index 0000000000000..dab3a97f6e734
--- /dev/null
+++ b/pkgs/applications/audio/deadbeef/plugins/headerbar-gtk3.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig, libxml2, deadbeef, glib, gtk3 }:
+
+stdenv.mkDerivation rec {
+  name = "deadbeef-headerbar-gtk3-plugin-${version}";
+  version = "1.2";
+
+  src = fetchFromGitHub {
+    owner = "saivert";
+    repo = "ddb_misc_headerbar_GTK3";
+    rev = "v${version}";
+    sha256 = "1v1schvnps7ypjqgcbqi74a45w8r2gbhrawz7filym22h1qr9wn0";
+  };
+
+  nativeBuildInputs = [ autoconf automake libtool pkgconfig 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 = with stdenv.lib; {
+    description = "Plug-in that adds GTK 3 header bar to the DeaDBeeF music player";
+    homepage = https://github.com/saivert/ddb_misc_headerbar_GTK3;
+    license = licenses.gpl2Plus;
+    maintainers = [ maintainers.jtojnar ];
+    platforms = platforms.linux;
+  };
+}