diff options
author | Volth <volth@webmaster.ms> | 2017-04-29 22:11:01 +0000 |
---|---|---|
committer | Volth <volth@webmaster.ms> | 2017-04-29 22:15:40 +0000 |
commit | f17a0fcdba31e59050d47b133c2cd4a519665a46 (patch) | |
tree | f0146b7f2dfd3c10031fe5ae980c8be550a88357 /pkgs/desktops/xfce | |
parent | 8c9b60a8307b4dafffb894b3d652389f6079b68a (diff) | |
download | nixlib-f17a0fcdba31e59050d47b133c2cd4a519665a46.tar nixlib-f17a0fcdba31e59050d47b133c2cd4a519665a46.tar.gz nixlib-f17a0fcdba31e59050d47b133c2cd4a519665a46.tar.bz2 nixlib-f17a0fcdba31e59050d47b133c2cd4a519665a46.tar.lz nixlib-f17a0fcdba31e59050d47b133c2cd4a519665a46.tar.xz nixlib-f17a0fcdba31e59050d47b133c2cd4a519665a46.tar.zst nixlib-f17a0fcdba31e59050d47b133c2cd4a519665a46.zip |
xfce4-dockbarx-plugin: init at 0.5
Diffstat (limited to 'pkgs/desktops/xfce')
-rw-r--r-- | pkgs/desktops/xfce/default.nix | 1 | ||||
-rw-r--r-- | pkgs/desktops/xfce/panel-plugins/xfce4-dockbarx-plugin.nix | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/desktops/xfce/default.nix b/pkgs/desktops/xfce/default.nix index c6ac89734047..8dae4190237c 100644 --- a/pkgs/desktops/xfce/default.nix +++ b/pkgs/desktops/xfce/default.nix @@ -83,6 +83,7 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od xfce4_cpugraph_plugin = callPackage ./panel-plugins/xfce4-cpugraph-plugin.nix { }; xfce4_datetime_plugin = callPackage ./panel-plugins/xfce4-datetime-plugin.nix { }; xfce4_dict_plugin = callPackage ./panel-plugins/xfce4-dict-plugin.nix { }; + xfce4_dockbarx_plugin = callPackage ./panel-plugins/xfce4-dockbarx-plugin.nix { }; xfce4_embed_plugin = callPackage ./panel-plugins/xfce4-embed-plugin.nix { }; xfce4_eyes_plugin = callPackage ./panel-plugins/xfce4-eyes-plugin.nix { }; xfce4_fsguard_plugin = callPackage ./panel-plugins/xfce4-fsguard-plugin.nix { }; diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-dockbarx-plugin.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-dockbarx-plugin.nix new file mode 100644 index 000000000000..42f155f39e25 --- /dev/null +++ b/pkgs/desktops/xfce/panel-plugins/xfce4-dockbarx-plugin.nix @@ -0,0 +1,42 @@ +{ stdenv, pkgconfig, fetchFromGitHub, python2, bash, vala, dockbarx, gtk2, xfce, pythonPackages }: + +stdenv.mkDerivation rec { + ver = "0.5"; + rev = "a2dcb66"; + name = "xfce4-dockbarx-plugin-${ver}-${rev}"; + + src = fetchFromGitHub { + owner = "TiZ-EX1"; + repo = "xfce4-dockbarx-plugin"; + rev = rev; + sha256 = "1f75iwlshnif60x0qqdqw5ffng2m4f4zp0ijkrbjz83wm73nsxfx"; + }; + + pythonPath = [ dockbarx ]; + + buildInputs = [ pkgconfig python2 vala gtk2 pythonPackages.wrapPython ] + ++ (with xfce; [ libxfce4util xfce4panel xfconf xfce4_dev_tools ]) + ++ pythonPath; + + postPatch = '' + substituteInPlace wscript --replace /usr/share/ "\''${PREFIX}/share/" + substituteInPlace src/dockbarx.vala --replace /usr/share/ $out/share/ + substituteInPlace src/dockbarx.vala --replace '/usr/bin/env python2' ${bash}/bin/bash + ''; + + configurePhase = "python waf configure --prefix=$out"; + + buildPhase = "python waf build"; + + installPhase = "python waf install"; + + postFixup = "wrapPythonPrograms"; + + meta = with stdenv.lib; { + homepage = https://github.com/TiZ-EX1/xfce4-dockbarx-plugin; + description = "A plugins to embed DockbarX into xfce4-panel"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = [ maintainers.volth ]; + }; +} |