summaryrefslogtreecommitdiffstats
path: root/pkgs/development/tools/bazel-watcher/default.nix
diff options
context:
space:
mode:
authorWael M. Nasreddine <wael.nasreddine@gmail.com>2019-06-26 18:02:38 -0700
committerWael M. Nasreddine <wael.nasreddine@gmail.com>2019-06-26 18:56:45 -0700
commitc273648a209ff231c6043e68301916f4187cb10e (patch)
treea3187dd8e2b0dd43ae2a76b9fdccb61c55c1b357 /pkgs/development/tools/bazel-watcher/default.nix
parent616e52e21be358fbd76d7cbd9a6d4744232490fb (diff)
bazel-watcher: replace the sed commands with a patch
Diffstat (limited to 'pkgs/development/tools/bazel-watcher/default.nix')
-rw-r--r--pkgs/development/tools/bazel-watcher/default.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/development/tools/bazel-watcher/default.nix b/pkgs/development/tools/bazel-watcher/default.nix
index 035bc16064d5..a30b5c9bd4eb 100644
--- a/pkgs/development/tools/bazel-watcher/default.nix
+++ b/pkgs/development/tools/bazel-watcher/default.nix
@@ -6,6 +6,9 @@
, stdenv
}:
+let
+ patches = [ ./use-go-in-path.patch ];
+in
buildBazelPackage rec {
name = "bazel-watcher-${version}";
version = "0.10.3";
@@ -22,11 +25,10 @@ buildBazelPackage rec {
bazelTarget = "//ibazel";
fetchAttrs = {
+ inherit patches;
+
preBuild = ''
patchShebangs .
-
- # tell rules_go to use the Go binary found in the PATH
- sed -e 's:go_register_toolchains():go_register_toolchains(go_version = "host"):g' -i WORKSPACE
'';
preInstall = ''
@@ -51,11 +53,10 @@ buildBazelPackage rec {
};
buildAttrs = {
+ inherit patches;
+
preBuild = ''
patchShebangs .
-
- # tell rules_go to use the Go binary found in the PATH
- sed -e 's:go_register_toolchains():go_register_toolchains(go_version = "host"):g' -i WORKSPACE
'';
installPhase = ''