2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2019-03-25 14:52:32 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "bazelisk";
|
2020-08-22 03:57:38 +01:00
|
|
|
version = "1.6.1";
|
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-08-22 03:57:38 +01:00
|
|
|
sha256 = "0g5zwdk7p1snqcbm4w3hsi3fm7sbsijrfj4ajxg7mifywqpmzm2l";
|
2019-03-25 14:52:32 +00:00
|
|
|
};
|
|
|
|
|
2020-08-08 01:46:54 +01:00
|
|
|
vendorSha256 = "1jgm6j04glvk7ib5yd0h04p9qxzl1ca100cv909kngx52jp61yxp";
|
2019-03-25 14:52:32 +00:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
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
|
|
|
}
|