From 5081109592778d6026669db831758b61e5b43c33 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Fri, 5 Apr 2024 11:09:59 -0700 Subject: [PATCH] Fix Boost with `make` build This prevents the autotools build from discovering Boost in Homebrew installation directories on macOS. Change-Id: I624309165c9371c391fd657424ba4c4f3182b385 --- package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.nix b/package.nix index ab08add16..39beccc1c 100644 --- a/package.nix +++ b/package.nix @@ -240,8 +240,9 @@ in stdenv.mkDerivation (finalAttrs: { fi ''; - configureFlags = lib.optionals stdenv.isLinux [ + configureFlags = [ "--with-boost=${boost}/lib" + ] ++ lib.optionals stdenv.isLinux [ "--with-sandbox-shell=${busybox-sandbox-shell}/bin/busybox" ] ++ lib.optionals (stdenv.isLinux && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux")) [ "LDFLAGS=-fuse-ld=gold"