11 system = stdenv.hostPlatform.system;
12 registry = fetchFromGitHub {
14 repo = "bazel-central-registry";
15 rev = "1c729c2775715fd98f0f948a512eb173213250da";
16 hash = "sha256-1iaDDM8/v8KCOUjPgLUtZVta7rMzwlIK//cCoLUrb/s=";
18 in buildBazelPackage rec {
22 src = fetchFromGitHub {
26 hash = "sha256-4h76ok2aN7WfD8OHIS0O2Dk924+hFXJXewKRM7XYjKw=";
29 bazelFlags = ["--registry" "file://${registry}"];
32 patchShebangs scripts/create-workspace-status.sh
37 aarch64-linux = "sha256-38O9HPKMjqpNCO+kC8hUlsJAclONVCj3oj/iVRwOEDo=";
38 x86_64-linux = "sha256-OUVjgVIBNh0j10dgk/l42bqmsGuBC56uf4Ei/IRXxBI=";
39 }.${system} or (throw "No hash for system: ${system}");
47 bazelBuildFlags = [ "-c opt" ];
48 bazelTestTargets = [ "//..." ];
49 bazelTargets = [ "//bant:bant" ];
53 install -D --strip bazel-bin/bant/bant "$out/bin/bant"
58 description = "Bazel/Build Analysis and Navigation Tool";
59 homepage = "http://bant.build/";
60 license = licenses.gpl2Only;
61 maintainers = with maintainers; [ hzeller lromor ];
62 platforms = platforms.linux;