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

28 lines
742 B
Nix
Raw Normal View History

2020-03-21 09:30:00 +00:00
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
2019-03-25 14:52:32 +00:00
buildGoModule rec {
pname = "bazelisk";
version = "1.3.0";
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 = "15h4mbsfjwby4wq57rdj4dzsf595qjfgi3v5zw62yycn3m2w922p";
2019-03-25 14:52:32 +00:00
};
modSha256 = "1w8k659ifapcxbbim0nf7wd7w10bhlagc33q08izh84gcgsh0yyz";
2019-03-25 14:52:32 +00:00
2020-03-21 09:30:00 +00:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
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 ];
};
}