2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2019-03-25 14:52:32 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "bazelisk";
|
2020-04-17 09:20:00 +00:00
|
|
|
version = "1.4.0";
|
2019-03-25 14:52:32 +00:00
|
|
|
|
2020-05-01 01:59:00 +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}";
|
2020-04-17 09:20:00 +00:00
|
|
|
sha256 = "14zp0bi0p1rfbx1pxi5y28ndxwbqbvfx0pvy3jh1mnx5qsii1gcq";
|
2019-03-25 14:52:32 +00:00
|
|
|
};
|
|
|
|
|
2020-05-01 01:59:00 +00:00
|
|
|
vendorSha256 = "10156k90ky3znb9rxhy7zasskxmlcs5cn9f3xk25ana1c66vxszr";
|
2019-03-25 14:52:32 +00:00
|
|
|
|
2020-04-17 09:20:00 +00: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 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-05-01 01:59:00 +00:00
|
|
|
}
|