mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-21 15:26:13 -05:00
fix(nix): resolve systemd DNS tools (#654)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
32bac9b675
commit
3882e29b0e
1 file changed
+9
@@ -92,6 +92,12 @@
|
|||||||
libayatana-appindicator
|
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 =
|
linuxBuildInputs =
|
||||||
with pkgs;
|
with pkgs;
|
||||||
[
|
[
|
||||||
@@ -229,6 +235,7 @@
|
|||||||
${installNixosPolkitRule}
|
${installNixosPolkitRule}
|
||||||
''
|
''
|
||||||
+ ''
|
+ ''
|
||||||
|
${rewriteVpncScriptToolPaths}
|
||||||
${rewriteSourceInstallPaths}
|
${rewriteSourceInstallPaths}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@@ -261,6 +268,8 @@
|
|||||||
|
|
||||||
install -Dm755 ${gpgui}/gpgui $out/bin/gpgui
|
install -Dm755 ${gpgui}/gpgui $out/bin/gpgui
|
||||||
|
|
||||||
|
${rewriteVpncScriptToolPaths}
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user