diff options
author | Donghang Lin <donghanglin@gmail.com> | 2023-06-01 11:35:20 -0700 |
---|---|---|
committer | Donghang Lin <donghanglin@gmail.com> | 2023-06-01 11:39:47 -0700 |
commit | 794f6f1f25e792cdac7b52c84c2c833a9feb7193 (patch) | |
tree | bfd857bfa6029c0643c3d74b42655860283297fb /pkgs/tools/misc/fzf | |
parent | e921ee7fdf39197aa45ae20af887d46eb87015d0 (diff) |
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.
Diffstat (limited to 'pkgs/tools/misc/fzf')
-rw-r--r-- | pkgs/tools/misc/fzf/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fzf/default.nix b/pkgs/tools/misc/fzf/default.nix index 37b9676674345..f9cbf8e3542a4 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 ]; |