jsonschema: 5.3.1 -> 0.7.0 with fixed update script

They have different tags for CLI(jv) and jsonschema.
See https://github.com/santhosh-tekuri/jsonschema/blob/83a4c8009c0e7855accffc926454a37a51d895ad/README.md?plain=1#L63 for detail.
And jv 0.7.0 is higher version than jsonschema 6.0.1.

+9 -6
+9 -6
pkgs/by-name/js/jsonschema/package.nix
··· 7 7 8 8 buildGoModule rec { 9 9 pname = "jsonschema"; 10 - version = "5.3.1"; 10 + version = "0.7.0"; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "santhosh-tekuri"; 14 14 repo = "jsonschema"; 15 - tag = "v${version}"; 16 - hash = "sha256-ANo9OkdNVCjV5uEqr9lNNbStquNb/3oxuTfMqE2nUzo="; 15 + tag = "cmd/jv/v${version}"; 16 + hash = "sha256-bMDDji5daBmjSeGxeS4PZfmTg+b8OVHsP8+m3jtpQJc="; 17 17 }; 18 18 19 19 sourceRoot = "${src.name}/cmd/jv"; 20 - passthru.updateScript = nix-update-script { }; 20 + env.GOWORK = "off"; 21 + passthru.updateScript = nix-update-script { 22 + extraArgs = [ "--version-regex=cmd/jv/v([\\d\\.]+)" ]; 23 + }; 21 24 22 - vendorHash = "sha256-FuUkC7iwn/jO3fHjT9nGUXc2X1QuuxPc8DAzVpzhANk="; 25 + vendorHash = "sha256-s7kEdA4yuExuzwN3hHgeZmtkES3Zw1SALoEHSNtdAww="; 23 26 24 27 ldflags = [ 25 28 "-s" ··· 29 32 meta = { 30 33 description = "JSON schema compilation and validation"; 31 34 homepage = "https://github.com/santhosh-tekuri/jsonschema"; 32 - changelog = "https://github.com/santhosh-tekuri/jsonschema/releases/tag/v${version}"; 35 + changelog = "https://github.com/santhosh-tekuri/jsonschema/releases/tag/${src.tag}"; 33 36 license = lib.licenses.asl20; 34 37 mainProgram = "jv"; 35 38 maintainers = with lib.maintainers; [ ibizaman ];