2021-05-29 03:34:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, bash
|
|
|
|
, dockbarx
|
|
|
|
, gobject-introspection
|
|
|
|
, keybinder3
|
|
|
|
, pkg-config
|
|
|
|
, python3Packages
|
|
|
|
, vala_0_48
|
|
|
|
, wafHook
|
|
|
|
, wrapGAppsHook
|
|
|
|
, xfce
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xfce4-dockbarx-plugin";
|
|
|
|
version = "${ver}-${rev}";
|
2021-04-05 15:23:46 +00:00
|
|
|
ver = "0.6";
|
2021-05-29 03:34:57 +00:00
|
|
|
rev = "5213876151f1836f044e9902a22d1e682144c1e0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-04-05 15:23:46 +00:00
|
|
|
owner = "xuzhen";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "xfce4-dockbarx-plugin";
|
|
|
|
rev = rev;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-VqtGcBRjvpCO9prVHOv6Gt1rAZtcAgkQkVCoR6ykC2k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-29 03:34:57 +00:00
|
|
|
pythonPath = [
|
|
|
|
dockbarx
|
|
|
|
python3Packages.pygobject3
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-29 03:34:57 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
pkg-config
|
|
|
|
python3Packages.wrapPython
|
|
|
|
vala_0_48
|
|
|
|
wafHook
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
keybinder3
|
|
|
|
python3Packages.python
|
|
|
|
xfce.xfce4-panel
|
|
|
|
xfce.xfconf
|
|
|
|
]
|
|
|
|
++ pythonPath;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace wscript --replace /usr/share/ "\''${PREFIX}/share/"
|
|
|
|
substituteInPlace src/dockbarx.vala --replace /usr/share/ $out/share/
|
2021-04-05 15:23:46 +00:00
|
|
|
substituteInPlace src/dockbarx.vala --replace '/usr/bin/env python3' ${bash}/bin/bash
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
2021-05-29 03:34:57 +00:00
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapPythonProgramsIn "$out/share/xfce4/panel/plugins" "$out $pythonPath"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-04-05 15:23:46 +00:00
|
|
|
homepage = "https://github.com/xuzhen/xfce4-dockbarx-plugin";
|
2021-05-29 03:34:57 +00:00
|
|
|
description = "Plugins to embed DockbarX into xfce4-panel";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2021-05-29 03:34:57 +00:00
|
|
|
maintainers = [ maintainers.romildo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|