summary refs log tree commit diff
path: root/pkgs/development/tools/bazel-watcher
diff options
context:
space:
mode:
authorWael M. Nasreddine <wael.nasreddine@gmail.com>2019-06-26 18:05:49 -0700
committerWael M. Nasreddine <wael.nasreddine@gmail.com>2019-06-26 18:57:25 -0700
commitf10f860cbfc8b6d7f7a4df72a489c97075582ef7 (patch)
tree6c84afc4336814062cea2057808a191fab29f785 /pkgs/development/tools/bazel-watcher
parentc273648a209ff231c6043e68301916f4187cb10e (diff)
downloadnixpkgs-f10f860cbfc8b6d7f7a4df72a489c97075582ef7.tar
nixpkgs-f10f860cbfc8b6d7f7a4df72a489c97075582ef7.tar.gz
nixpkgs-f10f860cbfc8b6d7f7a4df72a489c97075582ef7.tar.bz2
nixpkgs-f10f860cbfc8b6d7f7a4df72a489c97075582ef7.tar.lz
nixpkgs-f10f860cbfc8b6d7f7a4df72a489c97075582ef7.tar.xz
nixpkgs-f10f860cbfc8b6d7f7a4df72a489c97075582ef7.tar.zst
nixpkgs-f10f860cbfc8b6d7f7a4df72a489c97075582ef7.zip
bazel-watcher: update rules_go and fix the hash of the fetch derivation
Diffstat (limited to 'pkgs/development/tools/bazel-watcher')
-rw-r--r--pkgs/development/tools/bazel-watcher/default.nix17
1 files changed, 15 insertions, 2 deletions
diff --git a/pkgs/development/tools/bazel-watcher/default.nix b/pkgs/development/tools/bazel-watcher/default.nix
index a30b5c9bd4e..db04c2026d8 100644
--- a/pkgs/development/tools/bazel-watcher/default.nix
+++ b/pkgs/development/tools/bazel-watcher/default.nix
@@ -1,5 +1,6 @@
 { buildBazelPackage
 , fetchFromGitHub
+, fetchpatch
 , git
 , go
 , python
@@ -7,7 +8,19 @@
 }:
 
 let
-  patches = [ ./use-go-in-path.patch ];
+  patches = [
+    ./use-go-in-path.patch
+
+    # update rules_go to fix the build. Remove these when updating past 0.10.3
+    (fetchpatch {
+      url = "https://github.com/bazelbuild/bazel-watcher/commit/686130f50cea274f7453f6abc8c5249654047462.patch";
+      sha256 = "0rzs01sfiinl5d3dq9sx1bhl8kkzppdwh964fr7bzafqcxv5llmb";
+    })
+    (fetchpatch {
+      url = "https://github.com/bazelbuild/bazel-watcher/commit/18bdb44832ccc533e0ab3923ef80060eeb24582d.patch";
+      sha256 = "0k5hvlxlg4n092d53cbfxqqhzc6f1jv4licdhhi1dhckkhb4sdk6";
+    })
+  ];
 in
 buildBazelPackage rec {
   name = "bazel-watcher-${version}";
@@ -49,7 +62,7 @@ buildBazelPackage rec {
       sed -e '/^FILE:@bazel_gazelle_go_repository_tools.*/d' -i $bazelOut/external/\@*.marker
     '';
 
-    sha256 = "1ck1rsg5msd77abs889nl2n2i3jlah4d4vjz5wbsb3jyhzn8n5ny";
+    sha256 = "01d4m4kb2mhz8fxl9apzsdq0pd7i79w3q49x51rwa524caml9zfv";
   };
 
   buildAttrs = {