From e6d6637b1909243f24514b46ccaa2ae8c1276d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A9clairevoyant?= <848000+eclairevoyant@users.noreply.github.com> Date: Fri, 9 Feb 2024 14:07:37 -0500 Subject: [PATCH] waybar: fix impure dependency on /bin/sh --- pkgs/applications/misc/waybar/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/misc/waybar/default.nix b/pkgs/applications/misc/waybar/default.nix index 7514c80e602b..dad61b88d4ff 100644 --- a/pkgs/applications/misc/waybar/default.nix +++ b/pkgs/applications/misc/waybar/default.nix @@ -1,5 +1,6 @@ { lib , stdenv +, bash , fetchFromGitHub , SDL2 , alsa-lib @@ -163,6 +164,11 @@ stdenv.mkDerivation (finalAttrs: { "wireplumber" = wireplumberSupport; }) ++ lib.optional experimentalPatches (lib.mesonBool "experimental" true); + postPatch = '' + substituteInPlace include/util/command.hpp \ + --replace-fail /bin/sh ${lib.getExe' bash "sh"} + ''; + preFixup = lib.optionalString withMediaPlayer '' cp $src/resources/custom_modules/mediaplayer.py $out/bin/waybar-mediaplayer.py