git.iko.soy/typeable/nixpkgs
on master help sign in
xfce4-dockbarx-plugin: init at 0.5
commitf17a0fcdba31e59050d47b133c2cd4a519665a46 authorVolth <volth@webmaster.ms> dateSat 29 Apr 2017, 22:11 (10 years ago) parent8c9b60a
4 files changed+83
pkgs/applications/misc/dockbarx/default.nix+38 pkgs/desktops/xfce/default.nix+1 pkgs/desktops/xfce/panel-plugins/xfce4-dockbarx-plugin.nix+42 pkgs/top-level/all-packages.nix+2
pkgs/applications/misc/dockbarx/default.nixnew file+38
@@ -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+}
pkgs/desktops/xfce/default.nix+1
@@ -83,6 +83,7 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
8383 xfce4_cpugraph_plugin = callPackage ./panel-plugins/xfce4-cpugraph-plugin.nix { };
8484 xfce4_datetime_plugin = callPackage ./panel-plugins/xfce4-datetime-plugin.nix { };
8585 xfce4_dict_plugin = callPackage ./panel-plugins/xfce4-dict-plugin.nix { };
86+ xfce4_dockbarx_plugin = callPackage ./panel-plugins/xfce4-dockbarx-plugin.nix { };
8687 xfce4_embed_plugin = callPackage ./panel-plugins/xfce4-embed-plugin.nix { };
8788 xfce4_eyes_plugin = callPackage ./panel-plugins/xfce4-eyes-plugin.nix { };
8889 xfce4_fsguard_plugin = callPackage ./panel-plugins/xfce4-fsguard-plugin.nix { };
pkgs/desktops/xfce/panel-plugins/xfce4-dockbarx-plugin.nixnew file+42
@@ -0,0 +1,42 @@
1+{ stdenv, pkgconfig, fetchFromGitHub, python2, bash, vala, dockbarx, gtk2, xfce, pythonPackages }:
2+
3+stdenv.mkDerivation rec {
4+ ver = "0.5";
5+ rev = "a2dcb66";
6+ name = "xfce4-dockbarx-plugin-${ver}-${rev}";
7+
8+ src = fetchFromGitHub {
9+ owner = "TiZ-EX1";
10+ repo = "xfce4-dockbarx-plugin";
11+ rev = rev;
12+ sha256 = "1f75iwlshnif60x0qqdqw5ffng2m4f4zp0ijkrbjz83wm73nsxfx";
13+ };
14+
15+ pythonPath = [ dockbarx ];
16+
17+ buildInputs = [ pkgconfig python2 vala gtk2 pythonPackages.wrapPython ]
18+ ++ (with xfce; [ libxfce4util xfce4panel xfconf xfce4_dev_tools ])
19+ ++ pythonPath;
20+
21+ postPatch = ''
22+ substituteInPlace wscript --replace /usr/share/ "\''${PREFIX}/share/"
23+ substituteInPlace src/dockbarx.vala --replace /usr/share/ $out/share/
24+ substituteInPlace src/dockbarx.vala --replace '/usr/bin/env python2' ${bash}/bin/bash
25+ '';
26+
27+ configurePhase = "python waf configure --prefix=$out";
28+
29+ buildPhase = "python waf build";
30+
31+ installPhase = "python waf install";
32+
33+ postFixup = "wrapPythonPrograms";
34+
35+ meta = with stdenv.lib; {
36+ homepage = https://github.com/TiZ-EX1/xfce4-dockbarx-plugin;
37+ description = "A plugins to embed DockbarX into xfce4-panel";
38+ license = licenses.mit;
39+ platforms = platforms.linux;
40+ maintainers = [ maintainers.volth ];
41+ };
42+}
pkgs/top-level/all-packages.nix+2
@@ -1552,6 +1552,8 @@ with pkgs;
15521552
15531553 docbook2mdoc = callPackage ../tools/misc/docbook2mdoc { };
15541554
1555+ dockbarx = callPackage ../applications/misc/dockbarx { };
1556+
15551557 dog = callPackage ../tools/system/dog { };
15561558
15571559 dosfstools = callPackage ../tools/filesystems/dosfstools { };