Merge pull request #25334 from volth/xfce4-dockbarx-plugin

xfce4-dockbarx-plugin: init at 0.5
This commit is contained in:
Michael Raskin
2017-04-30 12:20:02 +02:00
committed by GitHub
4 changed files with 83 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
xfce4_cpugraph_plugin = callPackage ./panel-plugins/xfce4-cpugraph-plugin.nix { };
xfce4_datetime_plugin = callPackage ./panel-plugins/xfce4-datetime-plugin.nix { };
xfce4_dict_plugin = callPackage ./panel-plugins/xfce4-dict-plugin.nix { };
xfce4_dockbarx_plugin = callPackage ./panel-plugins/xfce4-dockbarx-plugin.nix { };
xfce4_embed_plugin = callPackage ./panel-plugins/xfce4-embed-plugin.nix { };
xfce4_eyes_plugin = callPackage ./panel-plugins/xfce4-eyes-plugin.nix { };
xfce4_fsguard_plugin = callPackage ./panel-plugins/xfce4-fsguard-plugin.nix { };

View File

@@ -0,0 +1,42 @@
{ stdenv, pkgconfig, fetchFromGitHub, python2, bash, vala, dockbarx, gtk2, xfce, pythonPackages }:
stdenv.mkDerivation rec {
ver = "0.5";
rev = "a2dcb66";
name = "xfce4-dockbarx-plugin-${ver}-${rev}";
src = fetchFromGitHub {
owner = "TiZ-EX1";
repo = "xfce4-dockbarx-plugin";
rev = rev;
sha256 = "1f75iwlshnif60x0qqdqw5ffng2m4f4zp0ijkrbjz83wm73nsxfx";
};
pythonPath = [ dockbarx ];
buildInputs = [ pkgconfig python2 vala gtk2 pythonPackages.wrapPython ]
++ (with xfce; [ libxfce4util xfce4panel xfconf xfce4_dev_tools ])
++ pythonPath;
postPatch = ''
substituteInPlace wscript --replace /usr/share/ "\''${PREFIX}/share/"
substituteInPlace src/dockbarx.vala --replace /usr/share/ $out/share/
substituteInPlace src/dockbarx.vala --replace '/usr/bin/env python2' ${bash}/bin/bash
'';
configurePhase = "python waf configure --prefix=$out";
buildPhase = "python waf build";
installPhase = "python waf install";
postFixup = "wrapPythonPrograms";
meta = with stdenv.lib; {
homepage = https://github.com/TiZ-EX1/xfce4-dockbarx-plugin;
description = "A plugins to embed DockbarX into xfce4-panel";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.volth ];
};
}