clipmenu: Fix systemd service, clipctl, clipmenud
clipmenud.service: - fix path to clipmenud clipmenud: - fix "ignore window" function by adding xdotools - add coreutils to make clipmenud fully self contained (needed for systemd service) clipctl: - fix process name, caused by wrapping clipmenud
This commit is contained in:
parent
f6ff5f85ca
commit
2f81c7a76a
@ -1,7 +1,15 @@
|
|||||||
{ clipnotify, makeWrapper, xsel, dmenu, util-linux, gawk, stdenv, fetchFromGitHub, lib }:
|
{ stdenv
|
||||||
let
|
, lib
|
||||||
runtimePath = lib.makeBinPath [ clipnotify xsel dmenu util-linux gawk ];
|
, fetchFromGitHub
|
||||||
in
|
, makeWrapper
|
||||||
|
, clipnotify
|
||||||
|
, coreutils
|
||||||
|
, dmenu
|
||||||
|
, gawk
|
||||||
|
, util-linux
|
||||||
|
, xdotool
|
||||||
|
, xsel
|
||||||
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "clipmenu";
|
pname = "clipmenu";
|
||||||
version = "6.2.0";
|
version = "6.2.0";
|
||||||
@ -13,14 +21,23 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-nvctEwyho6kl4+NXi76jT2kG7nchmI2a7mgxlgjXA5A=";
|
sha256 = "sha256-nvctEwyho6kl4+NXi76jT2kG7nchmI2a7mgxlgjXA5A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i init/clipmenud.service \
|
||||||
|
-e "s,/usr/bin,$out/bin,"
|
||||||
|
'';
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" ];
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ];
|
||||||
nativeBuildInputs = [ xsel clipnotify ];
|
nativeBuildInputs = [ xsel clipnotify ];
|
||||||
|
|
||||||
installPhase = ''
|
postFixup = ''
|
||||||
for bin in $out/bin/*; do
|
sed -i "$out/bin/clipctl" -e 's,clipmenud\$,\.clipmenud-wrapped\$,'
|
||||||
wrapProgram "$bin" --prefix PATH : "${runtimePath}"
|
|
||||||
done
|
wrapProgram "$out/bin/clipmenu" \
|
||||||
|
--prefix PATH : "${lib.makeBinPath [ xsel ]}"
|
||||||
|
|
||||||
|
wrapProgram "$out/bin/clipmenud" \
|
||||||
|
--set PATH "${lib.makeBinPath [ clipnotify coreutils gawk util-linux xdotool xsel ]}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user