1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "gnostic";
5 version = "0.7.0";
6
7 src = fetchFromGitHub {
8 owner = "google";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256-Wpe+rK4XMfMZYhR1xTEr0nsEjRGkSDA7aiLeBbGcRpA=";
12 };
13
14 vendorHash = "sha256-Wyv5czvD3IwE236vlAdq8I/DnhPXxdbwZtUhun+97x4=";
15
16 # some tests are broken and others require network access
17 doCheck = false;
18
19 meta = with lib; {
20 homepage = "https://github.com/google/gnostic";
21 description = "Compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks";
22 changelog = "https://github.com/google/gnostic/releases/tag/v${version}";
23 license = licenses.asl20;
24 maintainers = with maintainers; [ urandom ];
25 };
26}