Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 26 lines 744 B view raw
1{ lib, fetchFromGitHub, buildGoModule }: 2buildGoModule rec { 3 pname = "vmagent"; 4 version = "1.91.2"; 5 6 src = fetchFromGitHub { 7 owner = "VictoriaMetrics"; 8 repo = "VictoriaMetrics"; 9 rev = "v${version}"; 10 sha256 = "sha256-+xc3XhHHHe8JdHhEcAEGf6hkzlhSLYjG4C9znONPYzw="; 11 }; 12 13 ldflags = [ "-s" "-w" "-X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=${version}" ]; 14 15 vendorHash = null; 16 17 subPackages = [ "app/vmagent" ]; 18 19 meta = with lib; { 20 homepage = "https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/app/vmagent"; 21 description = "VictoriaMetrics metrics scraper"; 22 license = licenses.asl20; 23 platforms = platforms.linux; 24 maintainers = with maintainers; [ nullx76 ]; 25 }; 26}