From 9a41e8f91d4735188893be913b8c2a8d1535754e Mon Sep 17 00:00:00 2001
From: Stefan Junker <mail@stefanjunker.de>
Date: Tue, 24 May 2016 23:15:34 +0200
Subject: [PATCH] go/errcheck: bump version, remove postPatch

---
 pkgs/top-level/go-packages.nix | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix
index 4045ba841b25..768b4218a5fc 100644
--- a/pkgs/top-level/go-packages.nix
+++ b/pkgs/top-level/go-packages.nix
@@ -831,16 +831,10 @@ let
   };
 
   errcheck = buildFromGitHub {
-    rev = "f76568f8d87e48ccbbd17a827c2eaf31805bf58c";
+    rev = "8e25ad9d46f6c5d4e994edf82c57eb773a9aa73d";
     owner = "kisielk";
     repo = "errcheck";
-    sha256 = "1y1cqd0ibgr03zf96q6aagk65yhv6vcnq9xa8nqhjpnz7jhfndhs";
-    postPatch = ''
-      for f in $(find -name "*.go"); do
-        substituteInPlace $f \
-          --replace '"go/types"' '"golang.org/x/tools/go/types"'
-      done
-    '';
+    sha256 = "1089qf05q8db8h6ayn1c1iaq4fcpv18z3k94dr27v31k6f73dzhg";
     excludedPackages = [ "testdata" ];
     buildInputs = [ gotool tools ];
   };