Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule (finalAttrs: { 8 pname = "vt-cli"; 9 version = "1.1.1"; 10 11 src = fetchFromGitHub { 12 owner = "VirusTotal"; 13 repo = "vt-cli"; 14 tag = finalAttrs.version; 15 hash = "sha256-zeJGXJ1l+Vl/0IT/LVSOuSodnejFukCPIkrg4suKQsk="; 16 }; 17 18 vendorHash = "sha256-s90a35fFHO8Tt7Zjf9bk1VVD2xhG1g4rKmtIuMl0bMQ="; 19 20 ldflags = [ "-X github.com/VirusTotal/vt-cli/cmd.Version=${finalAttrs.version}" ]; 21 22 subPackages = [ "vt" ]; 23 24 meta = { 25 description = "VirusTotal Command Line Interface"; 26 homepage = "https://github.com/VirusTotal/vt-cli"; 27 changelog = "https://github.com/VirusTotal/vt-cli/releases/tag/${finalAttrs.version}"; 28 license = lib.licenses.asl20; 29 mainProgram = "vt"; 30 maintainers = with lib.maintainers; [ dit7ya ]; 31 }; 32})