nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.1 kB view raw
1{ 2 lib, 3 go, 4 buildGoModule, 5 fetchFromGitHub, 6 nix-update-script, 7 versionCheckHook, 8}: 9 10buildGoModule (finalAttrs: { 11 pname = "gonzo"; 12 version = "0.3.0"; 13 14 src = fetchFromGitHub { 15 owner = "control-theory"; 16 repo = "gonzo"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-fLTZwxZcwh7y83GfuOvG0R6vm/TgKIJjBWbt39mV6H8="; 19 }; 20 21 vendorHash = "sha256-uYQlZvsLUOmy7P/goNpwTGQrGFMW6LSILC6VjGbNrjI="; 22 23 ldflags = [ 24 "-s" 25 "-w" 26 "-X=main.version=${finalAttrs.version}" 27 "-X=main.commit=${finalAttrs.src.tag}" 28 "-X=main.buildTime=1970-01-01T00:00:00Z" 29 "-X=main.goVersion=${lib.getVersion go}" 30 ]; 31 32 passthru.updateScript = nix-update-script { }; 33 34 doInstallCheck = true; 35 nativeInstallCheckInputs = [ versionCheckHook ]; 36 37 meta = { 38 description = "TUI log analysis tool"; 39 homepage = "https://gonzo.controltheory.com/"; 40 downloadPage = "https://github.com/control-theory/gonzo"; 41 changelog = "https://github.com/control-theory/gonzo/releases/tag/v${finalAttrs.src.tag}"; 42 license = lib.licenses.mit; 43 maintainers = with lib.maintainers; [ kpbaks ]; 44 mainProgram = "gonzo"; 45 }; 46})