Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 31 lines 850 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "bazelisk"; 5 version = "1.20.0"; 6 7 src = fetchFromGitHub { 8 owner = "bazelbuild"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-UNrfLuSadkP3GBlFMg2V3mK/GSNlyvIxeHnkTuPjfy4="; 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 = "User-friendly launcher for Bazel"; 22 mainProgram = "bazelisk"; 23 longDescription = '' 24 BEWARE: This package does not work on NixOS. 25 ''; 26 homepage = "https://github.com/bazelbuild/bazelisk"; 27 changelog = "https://github.com/bazelbuild/bazelisk/releases/tag/v${version}"; 28 license = licenses.asl20; 29 maintainers = with maintainers; [ elasticdog ]; 30 }; 31}