From 6b3932ed4ac315951f8fdcbf7bd42ebace6b56a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20=C5=BDlender?= Date: Thu, 21 Dec 2023 22:56:44 +0100 Subject: [PATCH] harmonia: fix build on darwin --- pkgs/tools/package-management/harmonia/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/package-management/harmonia/default.nix b/pkgs/tools/package-management/harmonia/default.nix index 9c472f080b15..9830570a07fd 100644 --- a/pkgs/tools/package-management/harmonia/default.nix +++ b/pkgs/tools/package-management/harmonia/default.nix @@ -5,6 +5,7 @@ , nixVersions , pkg-config , rustPlatform +, stdenv , nix-update-script , nixosTests }: @@ -32,6 +33,11 @@ rustPlatform.buildRustPackage rec { nixVersions.nix_2_19 ]; + # Workaround for https://github.com/NixOS/nixpkgs/issues/166205 + env = lib.optionalAttrs stdenv.cc.isClang { + NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; + }; + passthru = { updateScript = nix-update-script { extraArgs = [ "--version-regex" "harmonia-v(.*)" ];