2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, libxml2, deadbeef, glib, gtk3 }:
|
2018-08-28 22:03:24 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "deadbeef-headerbar-gtk3-plugin";
|
2018-08-28 22:03:24 +01:00
|
|
|
version = "1.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "saivert";
|
|
|
|
repo = "ddb_misc_headerbar_GTK3";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1v1schvnps7ypjqgcbqi74a45w8r2gbhrawz7filym22h1qr9wn0";
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool pkg-config libxml2 ];
|
2018-08-28 22:03:24 +01:00
|
|
|
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";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-28 22:03:24 +01:00
|
|
|
description = "Plug-in that adds GTK 3 header bar to the DeaDBeeF music player";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/saivert/ddb_misc_headerbar_GTK3";
|
2018-08-28 22:03:24 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.jtojnar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|