2018-11-11 21:20:41 +00:00
|
|
|
{ stdenv, pkgconfig, fetchFromGitHub, python2, bash, vala
|
|
|
|
, dockbarx, gtk2, xfce, pythonPackages, wafHook }:
|
2017-04-29 23:11:01 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
2018-11-11 21:20:41 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ python2 vala gtk2 pythonPackages.wrapPython ]
|
2018-03-12 22:55:30 +00:00
|
|
|
++ (with xfce; [ libxfce4util xfce4-panel xfconf xfce4-dev-tools ])
|
2017-04-29 23:11:01 +01:00
|
|
|
++ 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
|
|
|
|
'';
|
|
|
|
|
2017-06-10 10:44:23 +01:00
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn "$out/share/xfce4/panel/plugins" "$out $pythonPath"
|
|
|
|
'';
|
2017-04-29 23:11:01 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|