go: format with nixpkgs-fmt
This commit is contained in:
parent
155ae682a5
commit
3a365e0e50
@ -1,6 +1,20 @@
|
|||||||
{ lib, stdenv, fetchurl, tzdata, iana-etc, runCommand
|
{ lib
|
||||||
, perl, which, pkg-config, patch, procps, pcre, cacert, Security, Foundation
|
, stdenv
|
||||||
, mailcap, runtimeShell
|
, fetchurl
|
||||||
|
, tzdata
|
||||||
|
, iana-etc
|
||||||
|
, runCommand
|
||||||
|
, perl
|
||||||
|
, which
|
||||||
|
, pkg-config
|
||||||
|
, patch
|
||||||
|
, procps
|
||||||
|
, pcre
|
||||||
|
, cacert
|
||||||
|
, Security
|
||||||
|
, Foundation
|
||||||
|
, mailcap
|
||||||
|
, runtimeShell
|
||||||
, buildPackages
|
, buildPackages
|
||||||
, pkgsBuildTarget
|
, pkgsBuildTarget
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
@ -15,7 +29,7 @@ let
|
|||||||
|
|
||||||
go_bootstrap = buildPackages.callPackage ./bootstrap.nix { };
|
go_bootstrap = buildPackages.callPackage ./bootstrap.nix { };
|
||||||
|
|
||||||
goBootstrap = runCommand "go-bootstrap" {} ''
|
goBootstrap = runCommand "go-bootstrap" { } ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cp -rf ${go_bootstrap}/* $out/
|
cp -rf ${go_bootstrap}/* $out/
|
||||||
chmod -R u+w $out
|
chmod -R u+w $out
|
||||||
@ -183,16 +197,18 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
|
# {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
|
||||||
# to be different from CC/CXX
|
# to be different from CC/CXX
|
||||||
CC_FOR_TARGET = if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
CC_FOR_TARGET =
|
||||||
|
if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
||||||
"${targetCC}/bin/${targetCC.targetPrefix}cc"
|
"${targetCC}/bin/${targetCC.targetPrefix}cc"
|
||||||
else
|
else
|
||||||
null;
|
null;
|
||||||
CXX_FOR_TARGET = if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
CXX_FOR_TARGET =
|
||||||
|
if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
||||||
"${targetCC}/bin/${targetCC.targetPrefix}c++"
|
"${targetCC}/bin/${targetCC.targetPrefix}c++"
|
||||||
else
|
else
|
||||||
null;
|
null;
|
||||||
|
|
||||||
GOARM = toString (lib.intersectLists [(stdenv.hostPlatform.parsed.cpu.version or "")] ["5" "6" "7"]);
|
GOARM = toString (lib.intersectLists [ (stdenv.hostPlatform.parsed.cpu.version or "") ] [ "5" "6" "7" ]);
|
||||||
GO386 = 387; # from Arch: don't assume sse2 on i686
|
GO386 = 387; # from Arch: don't assume sse2 on i686
|
||||||
CGO_ENABLED = 1;
|
CGO_ENABLED = 1;
|
||||||
# Hopefully avoids test timeouts on Hydra
|
# Hopefully avoids test timeouts on Hydra
|
||||||
@ -202,7 +218,7 @@ stdenv.mkDerivation rec {
|
|||||||
# Some tests assume things like home directories and users exists
|
# Some tests assume things like home directories and users exists
|
||||||
GO_BUILDER_NAME = "nix";
|
GO_BUILDER_NAME = "nix";
|
||||||
|
|
||||||
GOROOT_BOOTSTRAP="${goBootstrap}/share/go";
|
GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
export GOCACHE=$TMPDIR/go-cache
|
export GOCACHE=$TMPDIR/go-cache
|
||||||
|
@ -1,6 +1,20 @@
|
|||||||
{ lib, stdenv, fetchurl, tzdata, iana-etc, runCommand
|
{ lib
|
||||||
, perl, which, pkg-config, patch, procps, pcre, cacert, Security, Foundation
|
, stdenv
|
||||||
, mailcap, runtimeShell
|
, fetchurl
|
||||||
|
, tzdata
|
||||||
|
, iana-etc
|
||||||
|
, runCommand
|
||||||
|
, perl
|
||||||
|
, which
|
||||||
|
, pkg-config
|
||||||
|
, patch
|
||||||
|
, procps
|
||||||
|
, pcre
|
||||||
|
, cacert
|
||||||
|
, Security
|
||||||
|
, Foundation
|
||||||
|
, mailcap
|
||||||
|
, runtimeShell
|
||||||
, buildPackages
|
, buildPackages
|
||||||
, pkgsBuildTarget
|
, pkgsBuildTarget
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
@ -15,7 +29,7 @@ let
|
|||||||
|
|
||||||
go_bootstrap = buildPackages.callPackage ./bootstrap.nix { };
|
go_bootstrap = buildPackages.callPackage ./bootstrap.nix { };
|
||||||
|
|
||||||
goBootstrap = runCommand "go-bootstrap" {} ''
|
goBootstrap = runCommand "go-bootstrap" { } ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cp -rf ${go_bootstrap}/* $out/
|
cp -rf ${go_bootstrap}/* $out/
|
||||||
chmod -R u+w $out
|
chmod -R u+w $out
|
||||||
@ -186,16 +200,18 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
|
# {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
|
||||||
# to be different from CC/CXX
|
# to be different from CC/CXX
|
||||||
CC_FOR_TARGET = if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
CC_FOR_TARGET =
|
||||||
|
if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
||||||
"${targetCC}/bin/${targetCC.targetPrefix}cc"
|
"${targetCC}/bin/${targetCC.targetPrefix}cc"
|
||||||
else
|
else
|
||||||
null;
|
null;
|
||||||
CXX_FOR_TARGET = if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
CXX_FOR_TARGET =
|
||||||
|
if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
||||||
"${targetCC}/bin/${targetCC.targetPrefix}c++"
|
"${targetCC}/bin/${targetCC.targetPrefix}c++"
|
||||||
else
|
else
|
||||||
null;
|
null;
|
||||||
|
|
||||||
GOARM = toString (lib.intersectLists [(stdenv.hostPlatform.parsed.cpu.version or "")] ["5" "6" "7"]);
|
GOARM = toString (lib.intersectLists [ (stdenv.hostPlatform.parsed.cpu.version or "") ] [ "5" "6" "7" ]);
|
||||||
GO386 = 387; # from Arch: don't assume sse2 on i686
|
GO386 = 387; # from Arch: don't assume sse2 on i686
|
||||||
CGO_ENABLED = 1;
|
CGO_ENABLED = 1;
|
||||||
# Hopefully avoids test timeouts on Hydra
|
# Hopefully avoids test timeouts on Hydra
|
||||||
@ -205,7 +221,7 @@ stdenv.mkDerivation rec {
|
|||||||
# Some tests assume things like home directories and users exists
|
# Some tests assume things like home directories and users exists
|
||||||
GO_BUILDER_NAME = "nix";
|
GO_BUILDER_NAME = "nix";
|
||||||
|
|
||||||
GOROOT_BOOTSTRAP="${goBootstrap}/share/go";
|
GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
export GOCACHE=$TMPDIR/go-cache
|
export GOCACHE=$TMPDIR/go-cache
|
||||||
|
@ -1,6 +1,21 @@
|
|||||||
{ lib, stdenv, fetchurl, tzdata, iana-etc, runCommand
|
{ lib
|
||||||
, perl, which, pkg-config, patch, procps, pcre, cacert, Security, Foundation, xcbuild
|
, stdenv
|
||||||
, mailcap, runtimeShell
|
, fetchurl
|
||||||
|
, tzdata
|
||||||
|
, iana-etc
|
||||||
|
, runCommand
|
||||||
|
, perl
|
||||||
|
, which
|
||||||
|
, pkg-config
|
||||||
|
, patch
|
||||||
|
, procps
|
||||||
|
, pcre
|
||||||
|
, cacert
|
||||||
|
, Security
|
||||||
|
, Foundation
|
||||||
|
, xcbuild
|
||||||
|
, mailcap
|
||||||
|
, runtimeShell
|
||||||
, buildPackages
|
, buildPackages
|
||||||
, pkgsBuildTarget
|
, pkgsBuildTarget
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
@ -15,7 +30,7 @@ let
|
|||||||
|
|
||||||
go_bootstrap = buildPackages.callPackage ./bootstrap.nix { };
|
go_bootstrap = buildPackages.callPackage ./bootstrap.nix { };
|
||||||
|
|
||||||
goBootstrap = runCommand "go-bootstrap" {} ''
|
goBootstrap = runCommand "go-bootstrap" { } ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cp -rf ${go_bootstrap}/* $out/
|
cp -rf ${go_bootstrap}/* $out/
|
||||||
chmod -R u+w $out
|
chmod -R u+w $out
|
||||||
@ -181,16 +196,18 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
|
# {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
|
||||||
# to be different from CC/CXX
|
# to be different from CC/CXX
|
||||||
CC_FOR_TARGET = if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
CC_FOR_TARGET =
|
||||||
|
if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
||||||
"${targetCC}/bin/${targetCC.targetPrefix}cc"
|
"${targetCC}/bin/${targetCC.targetPrefix}cc"
|
||||||
else
|
else
|
||||||
null;
|
null;
|
||||||
CXX_FOR_TARGET = if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
CXX_FOR_TARGET =
|
||||||
|
if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
||||||
"${targetCC}/bin/${targetCC.targetPrefix}c++"
|
"${targetCC}/bin/${targetCC.targetPrefix}c++"
|
||||||
else
|
else
|
||||||
null;
|
null;
|
||||||
|
|
||||||
GOARM = toString (lib.intersectLists [(stdenv.hostPlatform.parsed.cpu.version or "")] ["5" "6" "7"]);
|
GOARM = toString (lib.intersectLists [ (stdenv.hostPlatform.parsed.cpu.version or "") ] [ "5" "6" "7" ]);
|
||||||
GO386 = "softfloat"; # from Arch: don't assume sse2 on i686
|
GO386 = "softfloat"; # from Arch: don't assume sse2 on i686
|
||||||
CGO_ENABLED = 1;
|
CGO_ENABLED = 1;
|
||||||
# Hopefully avoids test timeouts on Hydra
|
# Hopefully avoids test timeouts on Hydra
|
||||||
@ -200,7 +217,7 @@ stdenv.mkDerivation rec {
|
|||||||
# Some tests assume things like home directories and users exists
|
# Some tests assume things like home directories and users exists
|
||||||
GO_BUILDER_NAME = "nix";
|
GO_BUILDER_NAME = "nix";
|
||||||
|
|
||||||
GOROOT_BOOTSTRAP="${goBootstrap}/share/go";
|
GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
export GOCACHE=$TMPDIR/go-cache
|
export GOCACHE=$TMPDIR/go-cache
|
||||||
|
@ -1,6 +1,22 @@
|
|||||||
{ pkgs, lib, stdenv, fetchurl, fetchgit, tzdata, iana-etc, runCommand
|
{ pkgs
|
||||||
, perl, which, pkg-config, patch, procps, pcre, cacert, Security, Foundation
|
, lib
|
||||||
, mailcap, runtimeShell
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, fetchgit
|
||||||
|
, tzdata
|
||||||
|
, iana-etc
|
||||||
|
, runCommand
|
||||||
|
, perl
|
||||||
|
, which
|
||||||
|
, pkg-config
|
||||||
|
, patch
|
||||||
|
, procps
|
||||||
|
, pcre
|
||||||
|
, cacert
|
||||||
|
, Security
|
||||||
|
, Foundation
|
||||||
|
, mailcap
|
||||||
|
, runtimeShell
|
||||||
, buildPackages
|
, buildPackages
|
||||||
, pkgsBuildTarget
|
, pkgsBuildTarget
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
@ -13,7 +29,7 @@ let
|
|||||||
|
|
||||||
go_bootstrap = buildPackages.callPackage ./bootstrap.nix { };
|
go_bootstrap = buildPackages.callPackage ./bootstrap.nix { };
|
||||||
|
|
||||||
goBootstrap = runCommand "go-bootstrap" {} ''
|
goBootstrap = runCommand "go-bootstrap" { } ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cp -rf ${go_bootstrap}/* $out/
|
cp -rf ${go_bootstrap}/* $out/
|
||||||
chmod -R u+w $out
|
chmod -R u+w $out
|
||||||
@ -178,16 +194,18 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
|
# {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
|
||||||
# to be different from CC/CXX
|
# to be different from CC/CXX
|
||||||
CC_FOR_TARGET = if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
CC_FOR_TARGET =
|
||||||
|
if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
||||||
"${targetCC}/bin/${targetCC.targetPrefix}cc"
|
"${targetCC}/bin/${targetCC.targetPrefix}cc"
|
||||||
else
|
else
|
||||||
null;
|
null;
|
||||||
CXX_FOR_TARGET = if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
CXX_FOR_TARGET =
|
||||||
|
if (stdenv.buildPlatform != stdenv.targetPlatform) then
|
||||||
"${targetCC}/bin/${targetCC.targetPrefix}c++"
|
"${targetCC}/bin/${targetCC.targetPrefix}c++"
|
||||||
else
|
else
|
||||||
null;
|
null;
|
||||||
|
|
||||||
GOARM = toString (lib.intersectLists [(stdenv.hostPlatform.parsed.cpu.version or "")] ["5" "6" "7"]);
|
GOARM = toString (lib.intersectLists [ (stdenv.hostPlatform.parsed.cpu.version or "") ] [ "5" "6" "7" ]);
|
||||||
GO386 = "softfloat"; # from Arch: don't assume sse2 on i686
|
GO386 = "softfloat"; # from Arch: don't assume sse2 on i686
|
||||||
CGO_ENABLED = 1;
|
CGO_ENABLED = 1;
|
||||||
# Hopefully avoids test timeouts on Hydra
|
# Hopefully avoids test timeouts on Hydra
|
||||||
@ -197,7 +215,7 @@ stdenv.mkDerivation rec {
|
|||||||
# Some tests assume things like home directories and users exists
|
# Some tests assume things like home directories and users exists
|
||||||
GO_BUILDER_NAME = "nix";
|
GO_BUILDER_NAME = "nix";
|
||||||
|
|
||||||
GOROOT_BOOTSTRAP="${goBootstrap}/share/go";
|
GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
export GOCACHE=$TMPDIR/go-cache
|
export GOCACHE=$TMPDIR/go-cache
|
||||||
|
Loading…
Reference in New Issue
Block a user