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.
This commit is contained in:
Donghang Lin
2023-06-01 11:39:47 -07:00
parent e921ee7fdf
commit 794f6f1f25
+2
View File
@@ -44,6 +44,8 @@ buildGoModule rec {
vendorHash = "sha256-O6OjBbrVAxDQd27ar2mmFkU1XyVM2C8SJWJ54rgaf2s=";
CGO_ENABLED = 0;
outputs = [ "out" "man" ];
nativeBuildInputs = [ installShellFiles ];