2021-05-01 19:47:38 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, keybinder3
|
2021-06-23 19:22:04 +01:00
|
|
|
, libwnck
|
2021-05-01 19:47:38 +01:00
|
|
|
, python3Packages
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2017-04-29 23:11:01 +01:00
|
|
|
|
2021-05-01 19:47:38 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "dockbarx";
|
|
|
|
version = "${ver}-${rev}";
|
|
|
|
ver = "1.0-beta";
|
|
|
|
rev = "d98020ec49f3e3a5692ab2adbb145bbe5a1e80fe";
|
2017-04-29 23:11:01 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-05-01 19:47:38 +01:00
|
|
|
owner = "xuzhen";
|
2017-04-29 23:11:01 +01:00
|
|
|
repo = "dockbarx";
|
2021-05-01 19:47:38 +01:00
|
|
|
rev = rev;
|
|
|
|
sha256 = "0xwqxh5mr2bi0sk54b848705awp0lfpd91am551811j2bdkbs04m";
|
2017-04-29 23:11:01 +01:00
|
|
|
};
|
|
|
|
|
2021-05-01 19:47:38 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
glib.dev
|
|
|
|
python3Packages.polib
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
gtk3
|
2021-06-23 19:22:04 +01:00
|
|
|
libwnck
|
2021-05-01 19:47:38 +01:00
|
|
|
keybinder3
|
|
|
|
];
|
2017-04-29 23:11:01 +01:00
|
|
|
|
2021-05-01 19:47:38 +01:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
dbus-python
|
|
|
|
pillow
|
|
|
|
pygobject3
|
|
|
|
pyxdg
|
|
|
|
xlib
|
|
|
|
];
|
2017-04-29 23:11:01 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
2021-01-07 10:40:18 +00:00
|
|
|
|
2021-05-01 19:47:38 +01:00
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace /usr/ "" \
|
|
|
|
--replace '"/", "usr", "share",' '"share",'
|
|
|
|
|
|
|
|
for f in \
|
|
|
|
dbx_preference \
|
|
|
|
dockbarx/applets.py \
|
|
|
|
dockbarx/dockbar.py \
|
|
|
|
dockbarx/iconfactory.py \
|
|
|
|
dockbarx/theme.py \
|
|
|
|
mate_panel_applet/dockbarx_mate_applet
|
|
|
|
do
|
|
|
|
substituteInPlace $f --replace /usr/share/ $out/share/
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
glib-compile-schemas $out/share/glib-2.0/schemas
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Arguments to be passed to `makeWrapper`, only used by buildPython*
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-05-01 19:47:38 +01:00
|
|
|
homepage = "https://github.com/xuzhen/dockbarx";
|
|
|
|
description = "Lightweight taskbar/panel replacement which works as a stand-alone dock";
|
|
|
|
license = licenses.gpl3Only;
|
2017-04-29 23:11:01 +01:00
|
|
|
platforms = platforms.linux;
|
2021-05-01 19:47:38 +01:00
|
|
|
maintainers = [ maintainers.romildo ];
|
2017-04-29 23:11:01 +01:00
|
|
|
};
|
|
|
|
}
|