2022-01-19 23:45:15 +00:00
|
|
|
{ lib, stdenv, pkg-config, fetchFromGitHub, python3, vala
|
2021-06-28 23:13:55 +00:00
|
|
|
, gtk3, libwnck, libxfce4util, xfce4-panel, wafHook, xfce }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-29 15:07:52 +00:00
|
|
|
pname = "xfce4-namebar-plugin";
|
|
|
|
version = "1.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-12-29 15:07:52 +00:00
|
|
|
owner = "HugLifeTiZ";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-aKrJzf9rwCyXAJsRIXdBzmJBASuXD5I5kZrp+atx4FA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
nativeBuildInputs = [ pkg-config vala wafHook python3 ];
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ gtk3 libwnck libxfce4util xfce4-panel ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2021-04-05 15:23:46 +00:00
|
|
|
substituteInPlace src/namebar.vala --replace 'var dirs = Environment.get_system_data_dirs()' "string[] dirs = { \"$out/share\" }"
|
|
|
|
substituteInPlace src/preferences.vala --replace 'var dir_strings = Environment.get_system_data_dirs()' "string[] dir_strings = { \"$out/share\" }"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-12-29 15:07:52 +00:00
|
|
|
passthru.updateScript = xfce.updateScript {
|
|
|
|
inherit pname version;
|
|
|
|
attrPath = "xfce.${pname}";
|
|
|
|
versionLister = xfce.gitLister src.meta.homepage;
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-29 15:07:52 +00:00
|
|
|
homepage = "https://github.com/HugLifeTiZ/xfce4-namebar-plugin";
|
|
|
|
description = "Plugin which integrates titlebar and window controls into the xfce4-panel";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2021-12-19 01:06:50 +00:00
|
|
|
maintainers = with maintainers; [ volth ] ++ teams.xfce.members;
|
2022-01-19 23:45:15 +00:00
|
|
|
# Does not build with vala 0.48 or later
|
|
|
|
# libxfce4panel-2.0.vapi:92.3-92.41: error: overriding method `Xfce.PanelPlugin.remote_event' is incompatible
|
|
|
|
# with base method `bool Xfce.PanelPluginProvider.remote_event (string, GLib.Value, uint)': too few parameters.
|
|
|
|
# public virtual signal bool remote_event (string name, GLib.Value value);
|
|
|
|
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
# Upstream has no activity since 20 May 2020
|
|
|
|
broken = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|