From 3882e29b0e93ed5727e71119983c79c8104dd251 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Tue, 1 Sep 2026 07:33:15 +0000 Subject: [PATCH] fix(nix): resolve systemd DNS tools (#654) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- flake.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/flake.nix b/flake.nix index 9274861..8fc8f18 100644 --- a/flake.nix +++ b/flake.nix @@ -92,6 +92,12 @@ libayatana-appindicator ]; + rewriteVpncScriptToolPaths = lib.optionalString pkgs.stdenv.isLinux '' + substituteInPlace $out/libexec/gpclient/vpnc-script \ + --replace-fail /usr/bin/resolvectl ${pkgs.systemd}/bin/resolvectl \ + --replace-fail /usr/bin/busctl ${pkgs.systemd}/bin/busctl + ''; + linuxBuildInputs = with pkgs; [ @@ -229,6 +235,7 @@ ${installNixosPolkitRule} '' + '' + ${rewriteVpncScriptToolPaths} ${rewriteSourceInstallPaths} ''; }; @@ -261,6 +268,8 @@ install -Dm755 ${gpgui}/gpgui $out/bin/gpgui + ${rewriteVpncScriptToolPaths} + runHook postInstall ''; };