3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/xfce/panel-plugins/xfce4-namebar-plugin/default.nix

44 lines
1.7 KiB
Nix
Raw Normal View History

{ lib, stdenv, pkg-config, fetchFromGitHub, python3, vala_0_40
2021-06-23 19:22:04 +01:00
, gtk3, libwnck, libxfce4util, xfce4-panel, wafHook, xfce }:
2017-06-05 02:47:08 +01:00
stdenv.mkDerivation rec {
pname = "xfce4-namebar-plugin";
version = "1.0.0";
2017-06-05 02:47:08 +01:00
src = fetchFromGitHub {
owner = "HugLifeTiZ";
repo = pname;
rev = "v${version}";
sha256 = "sha256-aKrJzf9rwCyXAJsRIXdBzmJBASuXD5I5kZrp+atx4FA=";
2017-06-05 02:47:08 +01:00
};
# Does not build with vala 0.48 or later
# Upstream has no activity for a while
# 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);
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
nativeBuildInputs = [ pkg-config vala_0_40 wafHook python3 ];
2021-06-23 19:22:04 +01:00
buildInputs = [ gtk3 libwnck libxfce4util xfce4-panel ];
2017-06-05 02:47:08 +01:00
postPatch = ''
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\" }"
2017-06-05 02:47:08 +01:00
'';
passthru.updateScript = xfce.updateScript {
inherit pname version;
attrPath = "xfce.${pname}";
versionLister = xfce.gitLister src.meta.homepage;
rev-prefix = "v";
};
meta = with lib; {
homepage = "https://github.com/HugLifeTiZ/xfce4-namebar-plugin";
description = "Plugin which integrates titlebar and window controls into the xfce4-panel";
2017-06-05 02:47:08 +01:00
license = licenses.mit;
platforms = platforms.linux;
2021-11-28 18:51:44 +00:00
maintainers = with maintainers; [ volth ] ++ teams.xfce.members;
2017-06-05 02:47:08 +01:00
};
}