go-jsonschema: init at 0.20.0 (#428694)

authored by Robert Hensing and committed by GitHub fd3c2b0d 137e6fb6

+45
+45
pkgs/by-name/go/go-jsonschema/package.nix
··· 1 + { 2 + lib, 3 + buildGoModule, 4 + fetchFromGitHub, 5 + nix-update-script, 6 + }: 7 + buildGoModule (finalAttrs: { 8 + pname = "go-jsonschema"; 9 + version = "0.20.0"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "omissis"; 13 + repo = "go-jsonschema"; 14 + tag = "v${finalAttrs.version}"; 15 + hash = "sha256-e1eL5Blf9l4cSR7Tg740eTFza3ViJEiwLaoUsUZzQu4="; 16 + }; 17 + 18 + vendorHash = "sha256-vHtigJ2YNFFWGxv6/pGwmmGE0Fn+2S7NguyrhVME7ak="; 19 + 20 + ldflags = [ 21 + "-X main.version=v${finalAttrs.version}" 22 + "-s" 23 + "-w" 24 + ]; 25 + 26 + env.GOWORK = "off"; 27 + 28 + # Tests are in a nested Go module which makes things difficult. 29 + preBuild = '' 30 + rm -rf tests 31 + ''; 32 + 33 + passthru.updateScript = nix-update-script { }; 34 + 35 + meta = { 36 + description = "A tool to generate Go data types from JSON Schema definitions."; 37 + homepage = "https://github.com/omissis/go-jsonschema"; 38 + changelog = "https://github.com/omissis/go-jsonschema/releases/tag/v${finalAttrs.version}"; 39 + license = lib.licenses.mit; 40 + maintainers = with lib.maintainers; [ 41 + shellhazard 42 + ]; 43 + mainProgram = "go-jsonschema"; 44 + }; 45 + })