Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "gnostic";
5 version = "0.6.8";
6
7 src = fetchFromGitHub {
8 owner = "google";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256-+/KZmwVV3pnbv3JNwNk9Q2gcTyDxV1tgsDzW5IYnnds=";
12 };
13
14 vendorHash = "sha256-OoI1/OPBgAy4AysPPSCXGmf0S4opzxO7ZrwBsQYImwU=";
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 = "A 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}