From 924c4ebc08e270431664925c42da998d5d7a2616 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Sun, 6 Dec 2020 17:04:36 -0600 Subject: [PATCH] =?UTF-8?q?top-level/static.nix:=20Don=E2=80=99t=20add=20-?= =?UTF-8?q?static=20LDFLAGS=20in=20darwin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can’t do fully static here, like "static" flag in libev does. I’m not 100% sure if this is necessary for Linux (makeStaticBinaries should set -static flag automatically), but leaving as is to avoid breaking anything. --- pkgs/top-level/static.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/static.nix b/pkgs/top-level/static.nix index b3851ba20f0..caea8040620 100644 --- a/pkgs/top-level/static.nix +++ b/pkgs/top-level/static.nix @@ -281,8 +281,8 @@ in { python39 = super.python39.override { static = true; }; python3Minimal = super.python3Minimal.override { static = true; }; - - libev = super.libev.override { static = true; }; + # Note: -static doesn’t work on darwin + libev = super.libev.override { static = !super.stdenv.hostPlatform.isDarwin; }; libexecinfo = super.libexecinfo.override { enableShared = false; };