2021-02-27 20:34:49 +00:00
|
|
|
{ lib, stdenv, pkg-config, fetchFromGitHub, python3, bash, vala_0_48
|
2018-11-11 21:20:41 +00:00
|
|
|
, dockbarx, gtk2, xfce, pythonPackages, wafHook }:
|
2017-04-29 23:11:01 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-13 22:12:16 +01:00
|
|
|
pname = "xfce4-dockbarx-plugin";
|
|
|
|
version = "${ver}-${rev}";
|
2021-02-27 20:34:49 +00:00
|
|
|
ver = "0.6";
|
|
|
|
rev = "5213876";
|
2017-04-29 23:11:01 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-02-27 20:34:49 +00:00
|
|
|
owner = "xuzhen";
|
2017-04-29 23:11:01 +01:00
|
|
|
repo = "xfce4-dockbarx-plugin";
|
|
|
|
rev = rev;
|
2021-02-27 20:34:49 +00:00
|
|
|
sha256 = "0s8bljn4ga2hj480j0jwkc0npp8szbmirmcsys791gk32iq4dasn";
|
2017-04-29 23:11:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonPath = [ dockbarx ];
|
|
|
|
|
2021-01-17 02:21:50 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wafHook ];
|
2021-02-27 20:34:49 +00:00
|
|
|
buildInputs = [ python3 vala_0_48 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/
|
2021-02-27 20:34:49 +00:00
|
|
|
substituteInPlace src/dockbarx.vala --replace '/usr/bin/env python3' ${bash}/bin/bash
|
2017-04-29 23:11:01 +01:00
|
|
|
'';
|
|
|
|
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-02-27 20:34:49 +00:00
|
|
|
homepage = "https://github.com/xuzhen/xfce4-dockbarx-plugin";
|
2017-04-29 23:11:01 +01:00
|
|
|
description = "A plugins to embed DockbarX into xfce4-panel";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.volth ];
|
|
|
|
};
|
|
|
|
}
|