Skip to content

Commit 062011c

Browse files
committed
bant: 0.1.7 fix changed hash of fixed derivation.
The hash of the fixed derivation changed If the old derivation with the hash was cached on the system, the build failed with: ``` ERROR: /build/output/external/googletest~1.14.0.bcr.1/BUILD.bazel:80:11: Compiling googletest/src/gtest.cc failed: The include path '/nix/store/p5w6cmwqfvhyaf4vjr7jb18a90icrrr2-openjdk-21.0.3+9/include' references a path outside of the execution root. ERROR: /build/output/external/abseil-cpp~20240116.2/absl/base/BUILD.bazel:755:11: Compiling absl/base/internal/strerror.cc failed: The include path '/nix/store/p5w6cmwqfvhyaf4vjr7jb18a90icrrr2-openjdk-21.0.3+9/include' references a path outside of the execution root. ``` This indicates that the derivation also bakes in the path of the used JDK, which apparently changed since last time. Quick fix for now: adapt hash, but hopefully there could be a more long-term solution.
1 parent 83429e7 commit 062011c

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

pkgs/by-name/ba/bant/package.nix

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ let
1515
rev = "40bc9ad53e5a59d596935839e7c072679e706266";
1616
hash = "sha256-CL0YMQd1ck6/dlvJCLxt9jYyqDuk+iAWfdBOMj864u8=";
1717
};
18-
in buildBazelPackage rec {
18+
in
19+
buildBazelPackage rec {
1920
pname = "bant";
2021
version = "0.1.7";
2122

@@ -26,17 +27,22 @@ in buildBazelPackage rec {
2627
hash = "sha256-QbxPosjlrpxbz6gQKUKccF2Gu/i5xvqh2gwfABYE8kE=";
2728
};
2829

29-
bazelFlags = ["--registry" "file://${registry}"];
30+
bazelFlags = [
31+
"--registry"
32+
"file://${registry}"
33+
];
3034

3135
postPatch = ''
3236
patchShebangs scripts/create-workspace-status.sh
3337
'';
3438

3539
fetchAttrs = {
36-
sha256 = {
37-
aarch64-linux = "sha256-09RL0tj6xsGEmuv11V81eAtqLc9nAaE8Il3d6ueS0UQ=";
38-
x86_64-linux = "sha256-6mlaJ/kT14vKvlJjxqBK/lESjjxbcYxApi7+eiiI37M=";
39-
}.${system} or (throw "No hash for system: ${system}");
40+
hash =
41+
{
42+
aarch64-linux = "sha256-LNca4h4yceSgve9GYUoXqlODKPjLAa71kh1BWXqRYtk=";
43+
x86_64-linux = "sha256-bRFIfaVbsU2WroXR/i0E7J4rWeaNEoum93r8qOMXXvc=";
44+
}
45+
.${system} or (throw "No hash for system: ${system}");
4046
};
4147

4248
nativeBuildInputs = [
@@ -58,7 +64,10 @@ in buildBazelPackage rec {
5864
description = "Bazel/Build Analysis and Navigation Tool";
5965
homepage = "http://bant.build/";
6066
license = licenses.gpl2Only;
61-
maintainers = with maintainers; [ hzeller lromor ];
67+
maintainers = with maintainers; [
68+
hzeller
69+
lromor
70+
];
6271
platforms = platforms.linux;
6372
};
6473
}

0 commit comments

Comments
 (0)