summary refs log tree commit diff
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-02-23 12:09:47 +0100
committerSefa Eyeoglu <contact@scrumplex.net>2023-03-25 10:39:31 +0100
commitffd0990ad12ed766686d476a3d68d4030141d173 (patch)
treed0749c82bf939fe5afce2184a28e8281226f6421
parent443707aac61b424b8fb8c533ccd37b3688e5889c (diff)
downloadnixpkgs-ffd0990ad12ed766686d476a3d68d4030141d173.tar
nixpkgs-ffd0990ad12ed766686d476a3d68d4030141d173.tar.gz
nixpkgs-ffd0990ad12ed766686d476a3d68d4030141d173.tar.bz2
nixpkgs-ffd0990ad12ed766686d476a3d68d4030141d173.tar.lz
nixpkgs-ffd0990ad12ed766686d476a3d68d4030141d173.tar.xz
nixpkgs-ffd0990ad12ed766686d476a3d68d4030141d173.tar.zst
nixpkgs-ffd0990ad12ed766686d476a3d68d4030141d173.zip
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>
-rw-r--r--pkgs/applications/misc/mako/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/applications/misc/mako/default.nix b/pkgs/applications/misc/mako/default.nix
index 42f3a271b96..6a1f4389b64 100644
--- a/pkgs/applications/misc/mako/default.nix
+++ b/pkgs/applications/misc/mako/default.nix
@@ -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/";