Unverified Commit bcaf9e50 authored by adisbladis's avatar adisbladis Committed by GitHub
Browse files

direnv: Disable Cgo to build a static executable (#486452)

parents 03e95ed5 e9c06089
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -25,6 +25,9 @@ buildGoModule (finalAttrs: {
  # we have no bash at the moment for windows
  env.BASH_PATH = lib.optionalString (!stdenv.hostPlatform.isWindows) "${bash}/bin/bash";

  # Build a static executable to avoid environment runtime impurities
  env.CGO_ENABLED = 0;

  # replace the build phase to use the GNUMakefile instead
  buildPhase = ''
    make BASH_PATH=$BASH_PATH