1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 15:47:28 +00:00
nixpkgs/pkgs/development/tools/bazelisk/default.nix

32 lines
797 B
Nix
Raw Normal View History

{ 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
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
};
vendorSha256 = "1jgm6j04glvk7ib5yd0h04p9qxzl1ca100cv909kngx52jp61yxp";
2019-03-25 14:52:32 +00:00
doCheck = false;
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
}