diff options
author | Claudio Bley <claudio.bley@gmail.com> | 2022-07-11 16:26:10 +0200 |
---|---|---|
committer | Claudio Bley <claudio.bley@gmail.com> | 2022-08-01 06:39:12 +0200 |
commit | e7d5889381bb5a9d9ffc24b7c772b34fad635efa (patch) | |
tree | 1febf12a504e915d53bcaaaee977f3ce15c7f9a3 | |
parent | 8d97e13ef3edea3b2019eb08beeb0b8b9af348f9 (diff) | |
download | nixpkgs-e7d5889381bb5a9d9ffc24b7c772b34fad635efa.tar nixpkgs-e7d5889381bb5a9d9ffc24b7c772b34fad635efa.tar.gz nixpkgs-e7d5889381bb5a9d9ffc24b7c772b34fad635efa.tar.bz2 nixpkgs-e7d5889381bb5a9d9ffc24b7c772b34fad635efa.tar.lz nixpkgs-e7d5889381bb5a9d9ffc24b7c772b34fad635efa.tar.xz nixpkgs-e7d5889381bb5a9d9ffc24b7c772b34fad635efa.tar.zst nixpkgs-e7d5889381bb5a9d9ffc24b7c772b34fad635efa.zip |
bazel-watcher: Ensure fixed output hashes are system independent
bazel-watcher uses different libraries depending on the system now which results in different fixed output hashes for the dependencies. That's why we set `fetchConfigured = false`. Also remove the `external/com_google_protobuf` deps output directory since it contained symlinks to files with different permissions on Linux and Darwin.
-rw-r--r-- | pkgs/development/tools/bazel-watcher/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/tools/bazel-watcher/default.nix b/pkgs/development/tools/bazel-watcher/default.nix index 708de63b858..1391debf4ef 100644 --- a/pkgs/development/tools/bazel-watcher/default.nix +++ b/pkgs/development/tools/bazel-watcher/default.nix @@ -46,6 +46,7 @@ buildBazelPackage rec { bazelBuildFlags = lib.optionals stdenv.cc.isClang [ "--cxxopt=-x" "--cxxopt=c++" "--host_cxxopt=-x" "--host_cxxopt=c++" ]; bazelTarget = "//ibazel"; + fetchConfigured = false; # we want to fetch all dependencies, regardless of the current system fetchAttrs = { inherit patches; @@ -75,9 +76,12 @@ buildBazelPackage rec { # should be equivalent. rm -rf $bazelOut/external/{bazel_gazelle_go_repository_tools,\@bazel_gazelle_go_repository_tools.marker} sed -e '/^FILE:@bazel_gazelle_go_repository_tools.*/d' -i $bazelOut/external/\@*.marker + + # remove com_google_protobuf because it had files with different permissions on linux and darwin + rm -rf $bazelOut/external/com_google_protobuf ''; - sha256 = "sha256-Tkmq5/vrakWeIsnTQ9o0h2XhT/Ot+r6LRSCE5c6PSEk="; + sha256 = "sha256-QjMsWTIHCy6Mbbphk5eK2wIiw900AvmyA0ZV9Be7nPI="; }; buildAttrs = { |