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

30 lines
777 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2019-03-25 14:52:32 +00:00
buildGoModule rec {
pname = "bazelisk";
2020-06-05 09:20:00 +00:00
version = "1.5.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}";
2020-06-05 09:20:00 +00:00
sha256 = "06vimiklcprsxq7l6rmxshv8l0kjr7aanpm206qgx3wvw4shibmw";
2019-03-25 14:52:32 +00:00
};
2020-06-05 09:20:00 +00:00
vendorSha256 = "11iwgrnid0f8sq9f23m1a3s55sc7lpl60phykmd9ss4xs39bapl5";
2019-03-25 14:52:32 +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-06-05 09:20:00 +00:00
}