xfce.xfce4-dockbarx-plugin: 0.6 -> 0.7.2
https://github.com/xuzhen/xfce4-dockbarx-plugin/compare/v0.6...v0.7.2
This commit is contained in:
parent
5d8ba448c2
commit
cf25c427f3
1 changed files with 15 additions and 13 deletions
|
@ -2,28 +2,25 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, bash
|
, bash
|
||||||
|
, cmake
|
||||||
, dockbarx
|
, dockbarx
|
||||||
, gobject-introspection
|
, gobject-introspection
|
||||||
, keybinder3
|
, keybinder3
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, python3Packages
|
, python3Packages
|
||||||
, vala
|
|
||||||
, wafHook
|
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, xfce
|
, xfce
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "xfce4-dockbarx-plugin";
|
pname = "xfce4-dockbarx-plugin";
|
||||||
version = "${ver}-${rev}";
|
version = "0.7.2";
|
||||||
ver = "0.6";
|
|
||||||
rev = "5213876151f1836f044e9902a22d1e682144c1e0";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "xuzhen";
|
owner = "xuzhen";
|
||||||
repo = "xfce4-dockbarx-plugin";
|
repo = "xfce4-dockbarx-plugin";
|
||||||
rev = rev;
|
rev = "v${version}";
|
||||||
sha256 = "sha256-VqtGcBRjvpCO9prVHOv6Gt1rAZtcAgkQkVCoR6ykC2k=";
|
sha256 = "sha256-ZxaWORqA8LiM4CzakxClg5C6AsyHrzCGydgboCrC45g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonPath = [
|
pythonPath = [
|
||||||
|
@ -32,11 +29,10 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
pkg-config
|
pkg-config
|
||||||
python3Packages.wrapPython
|
python3Packages.wrapPython
|
||||||
vala
|
|
||||||
wafHook
|
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -49,14 +45,20 @@ stdenv.mkDerivation rec {
|
||||||
++ pythonPath;
|
++ pythonPath;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace wscript --replace /usr/share/ "\''${PREFIX}/share/"
|
# We execute the wrapped xfce4-panel-plug directly.
|
||||||
substituteInPlace src/dockbarx.vala --replace /usr/share/ $out/share/
|
# Since argv is used for g_free() we also need to shift the indexes.
|
||||||
substituteInPlace src/dockbarx.vala --replace '/usr/bin/env python3' ${bash}/bin/bash
|
substituteInPlace src/xfce_panel_plugin.c \
|
||||||
|
--replace '"python3",' "" \
|
||||||
|
--replace "g_free(argv[3]);" "g_free(argv[2]);" \
|
||||||
|
--replace "g_free(argv[5]);" "g_free(argv[4]);"
|
||||||
|
|
||||||
|
patchShebangs src/xfce4-dockbarx-plug.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||||||
wrapPythonProgramsIn "$out/share/xfce4/panel/plugins" "$out $pythonPath"
|
chmod +x $out/share/dockbarx/xfce4-panel-plug
|
||||||
|
wrapPythonProgramsIn "$out/share/dockbarx" "$out $pythonPath"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue