From fecf412767af5b027985871a5a3f14f12ce79f06 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Thu, 14 May 2015 17:34:50 -0700 Subject: [PATCH] buildGoPackage: Fix spacing --- .../go-modules/generic/default.nix | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index fce307e063c5..69efdfd54d3e 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -51,16 +51,16 @@ go.stdenv.mkDerivation ( args // { runHook renameImports if [ -n "$subPackages" ] ; then - for p in $subPackages ; do + for p in $subPackages ; do go install $buildFlags "''${buildFlagsArray[@]}" -p $NIX_BUILD_CORES -v $goPackagePath/$p - done + done else - find . -type d | while read d; do + find . -type d | while read d; do for i in $d/*.go; do go install $buildFlags "''${buildFlagsArray[@]}" -p $NIX_BUILD_CORES -v $d break - done - done + done + done fi runHook postBuild @@ -70,16 +70,16 @@ go.stdenv.mkDerivation ( args // { runHook preCheck if [ -n "$subPackages" ] ; then - for p in $subPackages ; do + for p in $subPackages ; do go test -p $NIX_BUILD_CORES -v $goPackagePath/$p - done + done else - find . -type d | while read d; do + find . -type d | while read d; do for i in $d/*_test.go; do go test -p $NIX_BUILD_CORES -v $d break - done - done + done + done fi runHook postCheck