Merge pull request #26401 from volth/xfce4-namebar-plugin

xfce4_namebar_plugin: init at 0.3.1

authored by Jörg Thalheim and committed by GitHub cea91a42 34d86e9d

+36
+1
pkgs/desktops/xfce/default.nix
··· 89 89 xfce4_fsguard_plugin = callPackage ./panel-plugins/xfce4-fsguard-plugin.nix { }; 90 90 xfce4_genmon_plugin = callPackage ./panel-plugins/xfce4-genmon-plugin.nix { }; 91 91 xfce4-hardware-monitor-plugin = callPackage ./panel-plugins/xfce4-hardware-monitor-plugin.nix { }; 92 + xfce4_namebar_plugin = callPackage ./panel-plugins/xfce4-namebar-plugin.nix { }; 92 93 xfce4_netload_plugin = callPackage ./panel-plugins/xfce4-netload-plugin.nix { }; 93 94 xfce4_notes_plugin = callPackage ./panel-plugins/xfce4-notes-plugin.nix { }; 94 95 xfce4_mailwatch_plugin = callPackage ./panel-plugins/xfce4-mailwatch-plugin.nix { };
+35
pkgs/desktops/xfce/panel-plugins/xfce4-namebar-plugin.nix
··· 1 + { stdenv, pkgconfig, fetchFromGitHub, python2, vala, gtk2, libwnck, libxfce4util, xfce4panel }: 2 + 3 + stdenv.mkDerivation rec { 4 + ver = "0.3.1"; 5 + rev = "07a23b3"; 6 + name = "xfce4-namebar-plugin-${ver}"; 7 + 8 + src = fetchFromGitHub { 9 + owner = "TiZ-EX1"; 10 + repo = "xfce4-namebar-plugin"; 11 + rev = rev; 12 + sha256 = "1sl4qmjywfvv53ch7hyfysjfd91zl38y7gdw2y3k69vkzd3h18ad"; 13 + }; 14 + 15 + buildInputs = [ pkgconfig python2 vala gtk2 libwnck libxfce4util xfce4panel ]; 16 + 17 + postPatch = '' 18 + substituteInPlace src/preferences.vala --replace 'Environment.get_system_data_dirs()' "{ \"$out/share\" }" 19 + substituteInPlace src/namebar.vala --replace 'Environment.get_system_data_dirs()' "{ \"$out/share\" }" 20 + ''; 21 + 22 + configurePhase = "python waf configure --prefix=$out"; 23 + 24 + buildPhase = "python waf build"; 25 + 26 + installPhase = "python waf install"; 27 + 28 + meta = with stdenv.lib; { 29 + homepage = https://github.com/TiZ-EX1/xfce4-namebar-plugin; 30 + description = "A plugins which integrates titlebar and window controls into the xfce4-panel"; 31 + license = licenses.mit; 32 + platforms = platforms.linux; 33 + maintainers = [ maintainers.volth ]; 34 + }; 35 + }