diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2017-04-30 12:20:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-30 12:20:02 +0200 |
commit | cd9ebdaa18b0aaacb9644e144eb8ca9bccae0da0 (patch) | |
tree | 32898a9001676743802b71cdccbb436700590f3d /pkgs/desktops | |
parent | 689916b98f97fd02dc474bfb215cf2369eb8f17a (diff) | |
parent | f17a0fcdba31e59050d47b133c2cd4a519665a46 (diff) | |
download | nixlib-cd9ebdaa18b0aaacb9644e144eb8ca9bccae0da0.tar nixlib-cd9ebdaa18b0aaacb9644e144eb8ca9bccae0da0.tar.gz nixlib-cd9ebdaa18b0aaacb9644e144eb8ca9bccae0da0.tar.bz2 nixlib-cd9ebdaa18b0aaacb9644e144eb8ca9bccae0da0.tar.lz nixlib-cd9ebdaa18b0aaacb9644e144eb8ca9bccae0da0.tar.xz nixlib-cd9ebdaa18b0aaacb9644e144eb8ca9bccae0da0.tar.zst nixlib-cd9ebdaa18b0aaacb9644e144eb8ca9bccae0da0.zip |
Merge pull request #25334 from volth/xfce4-dockbarx-plugin
xfce4-dockbarx-plugin: init at 0.5
Diffstat (limited to 'pkgs/desktops')
-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 ]; + }; +} |