libinput-gestures: Add coreutils to $PATH
Otherwise it can't find `stdbuf` when run as a systemd service.
This commit is contained in:
parent
83b221bc6c
commit
de121909d2
@ -1,6 +1,6 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, makeWrapper,
|
{ lib, stdenv, fetchFromGitHub, makeWrapper,
|
||||||
libinput, wmctrl, python3,
|
libinput, wmctrl, python3,
|
||||||
xdotool ? null,
|
coreutils, xdotool ? null,
|
||||||
extraUtilsPath ? lib.optional (xdotool != null) xdotool
|
extraUtilsPath ? lib.optional (xdotool != null) xdotool
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
|
|||||||
rm "$out/bin/libinput-gestures-setup"
|
rm "$out/bin/libinput-gestures-setup"
|
||||||
substituteInPlace "$out/share/applications/libinput-gestures.desktop" --replace "/usr" "$out"
|
substituteInPlace "$out/share/applications/libinput-gestures.desktop" --replace "/usr" "$out"
|
||||||
chmod +x "$out/share/applications/libinput-gestures.desktop"
|
chmod +x "$out/share/applications/libinput-gestures.desktop"
|
||||||
wrapProgram "$out/bin/libinput-gestures" --prefix PATH : "${lib.makeBinPath extraUtilsPath}"
|
wrapProgram "$out/bin/libinput-gestures" --prefix PATH : "${lib.makeBinPath ([coreutils] ++ extraUtilsPath)}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user