@@ -0,0 +1,38 @@
1+{ stdenv, fetchFromGitHub, pythonPackages, gnome2, keybinder }:
2+
3+pythonPackages.buildPythonApplication rec {
4+ ver = "0.92";
5+ name = "dockbarx-${ver}";
6+
7+ src = fetchFromGitHub {
8+ owner = "M7S";
9+ repo = "dockbarx";
10+ rev = ver;
11+ sha256 = "17n7jc3bk3f2i0i1ddpp05bakifc8y5xppads7ihpkj3qw9g35vl";
12+ };
13+
14+ postPatch = ''
15+ substituteInPlace setup.py --replace /usr/ ""
16+ substituteInPlace setup.py --replace '"/", "usr", "share",' '"share",'
17+ substituteInPlace dockbarx/applets.py --replace /usr/share/ $out/share/
18+ substituteInPlace dockbarx/dockbar.py --replace /usr/share/ $out/share/
19+ substituteInPlace dockbarx/iconfactory.py --replace /usr/share/ $out/share/
20+ substituteInPlace dockbarx/theme.py --replace /usr/share/ $out/share/
21+ substituteInPlace dockx_applets/battery_status.py --replace /usr/share/ $out/share/
22+ substituteInPlace dockx_applets/namebar.py --replace /usr/share/ $out/share/
23+ substituteInPlace dockx_applets/namebar_window_buttons.py --replace /usr/share/ $out/share/
24+ substituteInPlace dockx_applets/volume-control.py --replace /usr/share/ $out/share/
25+ '';
26+
27+ propagatedBuildInputs = (with pythonPackages; [ pygtk pyxdg dbus-python pillow xlib ])
28+ ++ (with gnome2; [ gnome_python gnome_python_desktop ])
29+ ++ [ keybinder ];
30+
31+ meta = with stdenv.lib; {
32+ homepage = http://launchpad.net/dockbar/;
33+ description = "DockBarX is a lightweight taskbar / panel replacement for Linux which works as a stand-alone dock";
34+ license = licenses.gpl3;
35+ platforms = platforms.linux;
36+ maintainers = [ maintainers.volth ];
37+ };
38+}