at 24.05-pre 30 lines 822 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "bazelisk"; 5 version = "1.19.0"; 6 7 src = fetchFromGitHub { 8 owner = "bazelbuild"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-no1+sQ+8Ead1diCYytC3MXVA68SuWWxt40OFVrGWYdQ="; 12 }; 13 14 vendorHash = "sha256-hjV7Pc3DFExSCsA0jKVxb1GxoXQ7LRFGuot3V0IHG58="; 15 16 doCheck = false; 17 18 ldflags = [ "-s" "-w" "-X main.BazeliskVersion=${version}" ]; 19 20 meta = with lib; { 21 description = "A user-friendly launcher for Bazel"; 22 longDescription = '' 23 BEWARE: This package does not work on NixOS. 24 ''; 25 homepage = "https://github.com/bazelbuild/bazelisk"; 26 changelog = "https://github.com/bazelbuild/bazelisk/releases/tag/v${version}"; 27 license = licenses.asl20; 28 maintainers = with maintainers; [ elasticdog ]; 29 }; 30}