From ba3db3e4733416b9d1a3b08ebfd31bdfc693e7c9 Mon Sep 17 00:00:00 2001 From: misuzu Date: Tue, 17 Jan 2023 21:45:49 +0200 Subject: [PATCH] zerotierone: add -lgcc to NIX_LDFLAGS This is required to workaround #201254 --- pkgs/tools/networking/zerotierone/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/networking/zerotierone/default.nix b/pkgs/tools/networking/zerotierone/default.nix index 10dc8a2a266fb..8c81e39b14264 100644 --- a/pkgs/tools/networking/zerotierone/default.nix +++ b/pkgs/tools/networking/zerotierone/default.nix @@ -79,6 +79,9 @@ replace-with = "vendored-sources"' >> ./zeroidc/.cargo/config.toml outputs = [ "out" "man" ]; + # https://github.com/NixOS/nixpkgs/issues/201254 + NIX_LDFLAGS = lib.optionalString (stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU) "-lgcc"; + meta = with lib; { description = "Create flat virtual Ethernet networks of almost unlimited size"; homepage = "https://www.zerotier.com";