Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / bazelisk / default.nix
blobbe59f6686d5bb3101ea44e6fa6ad10d0c4e84a5a
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "bazelisk";
5   version = "1.19.0";
7   src = fetchFromGitHub {
8     owner = "bazelbuild";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-no1+sQ+8Ead1diCYytC3MXVA68SuWWxt40OFVrGWYdQ=";
12   };
14   vendorHash = "sha256-hjV7Pc3DFExSCsA0jKVxb1GxoXQ7LRFGuot3V0IHG58=";
16   doCheck = false;
18   ldflags = [ "-s" "-w" "-X main.BazeliskVersion=${version}" ];
20   meta = with lib; {
21     description = "A user-friendly launcher for Bazel";
22     longDescription = ''
23       BEWARE: This package does not work on NixOS.
24     '';
25     homepage = "https://github.com/bazelbuild/bazelisk";
26     changelog = "https://github.com/bazelbuild/bazelisk/releases/tag/v${version}";
27     license = licenses.asl20;
28     maintainers = with maintainers; [ elasticdog ];
29   };