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-02-23 12:09:47 +01:00
parent 443707aac6
commit ffd0990ad1
No known key found for this signature in database
GPG key ID: E13DFD4B47127951

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/";