2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2019-03-25 14:52:32 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "bazelisk";
|
2020-06-05 10:20:00 +01:00
|
|
|
version = "1.5.0";
|
2019-03-25 14:52:32 +00:00
|
|
|
|
2020-05-01 02:59:00 +01:00
|
|
|
patches = [ ./gomod.patch ];
|
|
|
|
|
2019-03-25 14:52:32 +00:00
|
|
|
src = fetchFromGitHub {
|
2019-06-25 18:15:38 +01:00
|
|
|
owner = "bazelbuild";
|
2019-03-25 14:52:32 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-06-05 10:20:00 +01:00
|
|
|
sha256 = "06vimiklcprsxq7l6rmxshv8l0kjr7aanpm206qgx3wvw4shibmw";
|
2019-03-25 14:52:32 +00:00
|
|
|
};
|
|
|
|
|
2020-06-05 10:20:00 +01:00
|
|
|
vendorSha256 = "11iwgrnid0f8sq9f23m1a3s55sc7lpl60phykmd9ss4xs39bapl5";
|
2019-03-25 14:52:32 +00:00
|
|
|
|
2020-04-17 10:20:00 +01:00
|
|
|
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 18:15:38 +01: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 10:20:00 +01:00
|
|
|
}
|