mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-04 20:00:07 +00:00
victoriametrics: restore pure Go builds on other platforms
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildGo127Module,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
@@ -24,6 +25,8 @@ buildGo127Module (finalAttrs: {
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
# Match upstream release builds: CGO is enabled on Linux amd64 and arm64.
|
||||
env.CGO_ENABLED = if with stdenv.hostPlatform; isLinux && (isx86_64 || isAarch64) then "1" else "0";
|
||||
|
||||
subPackages =
|
||||
lib.optionals withServer [
|
||||
|
||||
Reference in New Issue
Block a user