mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
30 lines
777 B
Nix
30 lines
777 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "bazelisk";
|
|
version = "1.5.0";
|
|
|
|
patches = [ ./gomod.patch ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bazelbuild";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "06vimiklcprsxq7l6rmxshv8l0kjr7aanpm206qgx3wvw4shibmw";
|
|
};
|
|
|
|
vendorSha256 = "11iwgrnid0f8sq9f23m1a3s55sc7lpl60phykmd9ss4xs39bapl5";
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.BazeliskVersion=${version}" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A user-friendly launcher for Bazel";
|
|
longDescription = ''
|
|
BEWARE: This package does not work on NixOS.
|
|
'';
|
|
homepage = "https://github.com/bazelbuild/bazelisk";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ elasticdog ];
|
|
};
|
|
}
|