mako: add jq and systemd to PATH of makoctl

This closes NixOS/nixpkgs#217756

makoctl needs jq and busctl for some commands, so we need to inject
those into PATH for that script.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2023-03-25 10:39:31 +01:00
parent 443707aac6
commit ffd0990ad1
+7 -1
View File
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, scdoc
, systemd, pango, cairo, gdk-pixbuf
, systemd, pango, cairo, gdk-pixbuf, jq
, wayland, wayland-protocols
, wrapGAppsHook }:
@@ -22,6 +22,12 @@ stdenv.mkDerivation rec {
"-Dsd-bus-provider=libsystemd"
];
preFixup = ''
gappsWrapperArgs+=(
--prefix PATH : "${lib.makeBinPath [ systemd /* for busctl */ jq ]}"
)
'';
meta = with lib; {
description = "A lightweight Wayland notification daemon";
homepage = "https://wayland.emersion.fr/mako/";