nixpkgs/pkgs/development/tools/bazelisk/default.nix

32 lines
797 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2019-03-25 14:52:32 +00:00
buildGoModule rec {
pname = "bazelisk";
version = "1.6.0";
2019-03-25 14:52:32 +00:00
patches = [ ./gomod.patch ];
2019-03-25 14:52:32 +00:00
src = fetchFromGitHub {
2019-06-25 17:15:38 +00:00
owner = "bazelbuild";
2019-03-25 14:52:32 +00:00
repo = pname;
rev = "v${version}";
sha256 = "0l1032c0nqbdyasq6f8yf0vph06w6v81w044fs70rgzsa91m038r";
2019-03-25 14:52:32 +00:00
};
vendorSha256 = "1jgm6j04glvk7ib5yd0h04p9qxzl1ca100cv909kngx52jp61yxp";
2019-03-25 14:52:32 +00:00
doCheck = false;
buildFlagsArray = [ "-ldflags=-s -w -X main.BazeliskVersion=${version}" ];
2019-03-25 14:52:32 +00:00
meta = with stdenv.lib; {
description = "A user-friendly launcher for Bazel";
2019-06-25 17:15:38 +00:00
longDescription = ''
BEWARE: This package does not work on NixOS.
'';
homepage = "https://github.com/bazelbuild/bazelisk";
2019-03-25 14:52:32 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ elasticdog ];
};
2020-06-05 09:20:00 +00:00
}