From 794f6f1f25e792cdac7b52c84c2c833a9feb7193 Mon Sep 17 00:00:00 2001 From: Donghang Lin Date: Thu, 1 Jun 2023 11:35:20 -0700 Subject: [PATCH] fzf: build with CGO_ENABLED=0 Since 0.36.0, fzf introduced several go libs that bring CGO dependencies if CGO is enabled. This makes the final binary depend on several non deterministic glibc share libraries. Fix with CGO_ENABLED=0 to make the final binary static. --- pkgs/tools/misc/fzf/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/misc/fzf/default.nix b/pkgs/tools/misc/fzf/default.nix index 37b967667434..f9cbf8e3542a 100644 --- a/pkgs/tools/misc/fzf/default.nix +++ b/pkgs/tools/misc/fzf/default.nix @@ -44,6 +44,8 @@ buildGoModule rec { vendorHash = "sha256-O6OjBbrVAxDQd27ar2mmFkU1XyVM2C8SJWJ54rgaf2s="; + CGO_ENABLED = 0; + outputs = [ "out" "man" ]; nativeBuildInputs = [ installShellFiles ];