summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2025-07-16 21:59:46 +0200
committerAlbin <albin@mullvad.net>2025-07-16 22:19:27 +0200
commit184619196eba1d5f5f45d7a72090c2fffc513c17 (patch)
tree650eae6743976cd0e306faac024d6aa7542da350 /android
parentc9cf9cb22d112efece39cc4e06c1f068600315a3 (diff)
downloadmullvadvpn-184619196eba1d5f5f45d7a72090c2fffc513c17.tar.xz
mullvadvpn-184619196eba1d5f5f45d7a72090c2fffc513c17.zip
Disable autoPatchelfHook for macOS
Diffstat (limited to 'android')
-rw-r--r--android/flake.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/android/flake.nix b/android/flake.nix
index 0d75da2038..4717083f56 100644
--- a/android/flake.nix
+++ b/android/flake.nix
@@ -31,6 +31,15 @@
overlays = [
(import rust-overlay)
devshell.overlays.default
+ # Fix that disables autoPatchelfHook on macOS.
+ # Should be addressed upstream in nixpkgs.
+ (final: prev: {
+ protoc-gen-grpc-java = prev.protoc-gen-grpc-java.overrideAttrs (old: {
+ nativeBuildInputs =
+ pkgs.lib.remove prev.autoPatchelfHook (old.nativeBuildInputs or [])
+ ++ pkgs.lib.optionals prev.stdenv.isLinux [prev.autoPatchelfHook];
+ });
+ })
];
};