From bf9f60fe747b0847adbdc3d29beaa7f6a07dfcee Mon Sep 17 00:00:00 2001 From: Kamil Chmielewski Date: Wed, 6 Apr 2016 10:47:04 +0200 Subject: [PATCH] buildGoPackage: we don't need to build vendored packages --- pkgs/development/go-modules/generic/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 93b09acbda1b..89258062f263 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -106,7 +106,7 @@ go.stdenv.mkDerivation ( echo "$subPackages" | sed "s,\(^\| \),\1$goPackagePath/,g" else pushd go/src >/dev/null - find "$goPackagePath" -type f -name \*$type.go -exec dirname {} \; | sort | uniq + find "$goPackagePath" -type f -name \*$type.go -exec dirname {} \; | grep -v "/vendor/" | sort | uniq popd >/dev/null fi }