Loading pkgs/build-support/go/module.nix +2 −4 Original line number Diff line number Diff line Loading @@ -107,7 +107,7 @@ let buildPhase = args.modBuildPhase or '' runHook preBuild '' + lib.optionalString (deleteVendor == true) '' '' + lib.optionalString deleteVendor '' if [ ! -d vendor ]; then echo "vendor folder does not exist, 'deleteVendor' is not needed" exit 10 Loading Loading @@ -174,7 +174,7 @@ let GO111MODULE = "on"; GOFLAGS = lib.optionals (!proxyVendor) [ "-mod=vendor" ] ++ lib.optionals (!allowGoReference) [ "-trimpath" ]; inherit CGO_ENABLED; inherit CGO_ENABLED enableParallelBuilding; configurePhase = args.configurePhase or '' runHook preConfigure Loading Loading @@ -313,8 +313,6 @@ let passthru = passthru // { inherit go go-modules vendorSha256 vendorHash; }; enableParallelBuilding = enableParallelBuilding; meta = { # Add default meta information platforms = go.meta.platforms or lib.platforms.all; Loading pkgs/build-support/go/package.nix +2 −4 Original line number Diff line number Diff line Loading @@ -92,7 +92,7 @@ let GOHOSTARCH = go.GOHOSTARCH or null; GOHOSTOS = go.GOHOSTOS or null; inherit CGO_ENABLED; inherit CGO_ENABLED enableParallelBuilding; GO111MODULE = "off"; GOFLAGS = lib.optionals (!allowGoReference) [ "-trimpath" ]; Loading @@ -107,7 +107,7 @@ let mkdir -p "go/src/$(dirname "$goPackagePath")" mv "$sourceRoot" "go/src/$goPackagePath" '' + lib.optionalString (deleteVendor == true) '' '' + lib.optionalString deleteVendor '' if [ ! -d "go/src/$goPackagePath/vendor" ]; then echo "vendor folder does not exist, 'deleteVendor' is not needed" exit 10 Loading Loading @@ -279,8 +279,6 @@ let { inherit go; } // lib.optionalAttrs (goPackageAliases != []) { inherit goPackageAliases; }; enableParallelBuilding = enableParallelBuilding; meta = { # Add default meta information homepage = "https://${goPackagePath}"; Loading Loading
pkgs/build-support/go/module.nix +2 −4 Original line number Diff line number Diff line Loading @@ -107,7 +107,7 @@ let buildPhase = args.modBuildPhase or '' runHook preBuild '' + lib.optionalString (deleteVendor == true) '' '' + lib.optionalString deleteVendor '' if [ ! -d vendor ]; then echo "vendor folder does not exist, 'deleteVendor' is not needed" exit 10 Loading Loading @@ -174,7 +174,7 @@ let GO111MODULE = "on"; GOFLAGS = lib.optionals (!proxyVendor) [ "-mod=vendor" ] ++ lib.optionals (!allowGoReference) [ "-trimpath" ]; inherit CGO_ENABLED; inherit CGO_ENABLED enableParallelBuilding; configurePhase = args.configurePhase or '' runHook preConfigure Loading Loading @@ -313,8 +313,6 @@ let passthru = passthru // { inherit go go-modules vendorSha256 vendorHash; }; enableParallelBuilding = enableParallelBuilding; meta = { # Add default meta information platforms = go.meta.platforms or lib.platforms.all; Loading
pkgs/build-support/go/package.nix +2 −4 Original line number Diff line number Diff line Loading @@ -92,7 +92,7 @@ let GOHOSTARCH = go.GOHOSTARCH or null; GOHOSTOS = go.GOHOSTOS or null; inherit CGO_ENABLED; inherit CGO_ENABLED enableParallelBuilding; GO111MODULE = "off"; GOFLAGS = lib.optionals (!allowGoReference) [ "-trimpath" ]; Loading @@ -107,7 +107,7 @@ let mkdir -p "go/src/$(dirname "$goPackagePath")" mv "$sourceRoot" "go/src/$goPackagePath" '' + lib.optionalString (deleteVendor == true) '' '' + lib.optionalString deleteVendor '' if [ ! -d "go/src/$goPackagePath/vendor" ]; then echo "vendor folder does not exist, 'deleteVendor' is not needed" exit 10 Loading Loading @@ -279,8 +279,6 @@ let { inherit go; } // lib.optionalAttrs (goPackageAliases != []) { inherit goPackageAliases; }; enableParallelBuilding = enableParallelBuilding; meta = { # Add default meta information homepage = "https://${goPackagePath}"; Loading