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

28 lines
742 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2019-03-25 15:52:32 +01:00
buildGoModule rec {
pname = "bazelisk";
version = "1.4.0";
2019-03-25 15:52:32 +01:00
src = fetchFromGitHub {
2019-06-25 19:15:38 +02:00
owner = "bazelbuild";
2019-03-25 15:52:32 +01:00
repo = pname;
rev = "v${version}";
sha256 = "14zp0bi0p1rfbx1pxi5y28ndxwbqbvfx0pvy3jh1mnx5qsii1gcq";
2019-03-25 15:52:32 +01:00
};
modSha256 = "1w8k659ifapcxbbim0nf7wd7w10bhlagc33q08izh84gcgsh0yyz";
2019-03-25 15:52:32 +01:00
buildFlagsArray = [ "-ldflags=-s -w -X main.BazeliskVersion=${version}" ];
2019-03-25 15:52:32 +01:00
meta = with stdenv.lib; {
description = "A user-friendly launcher for Bazel";
2019-06-25 19:15:38 +02:00
longDescription = ''
BEWARE: This package does not work on NixOS.
'';
homepage = "https://github.com/bazelbuild/bazelisk";
2019-03-25 15:52:32 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ elasticdog ];
};
}