11 system = stdenv.hostPlatform.system;
12 registry = fetchFromGitHub {
14 repo = "bazel-central-registry";
15 rev = "40bc9ad53e5a59d596935839e7c072679e706266";
16 hash = "sha256-CL0YMQd1ck6/dlvJCLxt9jYyqDuk+iAWfdBOMj864u8=";
18 in buildBazelPackage rec {
22 src = fetchFromGitHub {
26 hash = "sha256-QbxPosjlrpxbz6gQKUKccF2Gu/i5xvqh2gwfABYE8kE=";
29 bazelFlags = ["--registry" "file://${registry}"];
32 patchShebangs scripts/create-workspace-status.sh
37 aarch64-linux = "sha256-09RL0tj6xsGEmuv11V81eAtqLc9nAaE8Il3d6ueS0UQ=";
38 x86_64-linux = "sha256-6mlaJ/kT14vKvlJjxqBK/lESjjxbcYxApi7+eiiI37M=";
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;