bazel-watcher: 0.14.0 -> 0.16.2

+10 -5
+9 -4
pkgs/development/tools/bazel-watcher/default.nix
··· 1 { buildBazelPackage 2 , fetchFromGitHub 3 , git 4 , go ··· 13 in 14 buildBazelPackage rec { 15 pname = "bazel-watcher"; 16 - version = "0.14.0"; 17 18 src = fetchFromGitHub { 19 owner = "bazelbuild"; 20 repo = "bazel-watcher"; 21 rev = "v${version}"; 22 - sha256 = "0gigl1lg8sb4bj5crvj54329ws4yirldbncs15f96db6vhp0ig7r"; 23 }; 24 25 nativeBuildInputs = [ go git python3 ]; 26 removeRulesCC = false; 27 28 bazelTarget = "//ibazel"; 29 30 fetchAttrs = { ··· 32 33 preBuild = '' 34 patchShebangs . 35 ''; 36 37 preInstall = '' ··· 56 sed -e '/^FILE:@bazel_gazelle_go_repository_tools.*/d' -i $bazelOut/external/\@*.marker 57 ''; 58 59 - sha256 = "1j175z3d4fbi4pl35py7yjq7ywrvwin6id131jv32hx0ck4g1m46"; 60 }; 61 62 buildAttrs = { ··· 66 patchShebangs . 67 68 substituteInPlace ibazel/BUILD --replace '{STABLE_GIT_VERSION}' ${version} 69 ''; 70 71 installPhase = '' 72 - install -Dm755 bazel-bin/ibazel/*_pure_stripped/ibazel $out/bin/ibazel 73 ''; 74 }; 75
··· 1 { buildBazelPackage 2 + , bazel_5 3 , fetchFromGitHub 4 , git 5 , go ··· 14 in 15 buildBazelPackage rec { 16 pname = "bazel-watcher"; 17 + version = "0.16.2"; 18 19 src = fetchFromGitHub { 20 owner = "bazelbuild"; 21 repo = "bazel-watcher"; 22 rev = "v${version}"; 23 + sha256 = "sha256-yRXta6pPhgIonTL0q9GSzNQg/jHMIeC7xvfVYrZMmnc="; 24 }; 25 26 nativeBuildInputs = [ go git python3 ]; 27 removeRulesCC = false; 28 29 + bazel = bazel_5; 30 bazelTarget = "//ibazel"; 31 32 fetchAttrs = { ··· 34 35 preBuild = '' 36 patchShebangs . 37 + 38 + echo ${bazel_5.version} > .bazelversion 39 ''; 40 41 preInstall = '' ··· 60 sed -e '/^FILE:@bazel_gazelle_go_repository_tools.*/d' -i $bazelOut/external/\@*.marker 61 ''; 62 63 + sha256 = "sha256-vij20VMBlKTBOACjH+XP4Z15BOmXYvlmErkVgjOln3M="; 64 }; 65 66 buildAttrs = { ··· 70 patchShebangs . 71 72 substituteInPlace ibazel/BUILD --replace '{STABLE_GIT_VERSION}' ${version} 73 + echo ${bazel_5.version} > .bazelversion 74 ''; 75 76 installPhase = '' 77 + install -Dm755 bazel-bin/ibazel/ibazel_/ibazel $out/bin/ibazel 78 ''; 79 }; 80
+1 -1
pkgs/development/tools/bazel-watcher/use-go-in-path.patch
··· 6 7 go_rules_dependencies() 8 9 - -go_register_toolchains() 10 +go_register_toolchains(go_version = "host") 11 12 load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
··· 6 7 go_rules_dependencies() 8 9 + -go_register_toolchains(version = "1.17.6") 10 +go_register_toolchains(go_version = "host") 11 12 load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")