Skip to content

Commit 11e5110

Browse files
authored
jsonschema: 5.3.1 -> 0.7.0 with fixed update script (#384225)
2 parents 631fb54 + e4839eb commit 11e5110

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

pkgs/by-name/js/jsonschema/package.nix

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@
77

88
buildGoModule rec {
99
pname = "jsonschema";
10-
version = "5.3.1";
10+
version = "0.7.0";
1111

1212
src = fetchFromGitHub {
1313
owner = "santhosh-tekuri";
1414
repo = "jsonschema";
15-
tag = "v${version}";
16-
hash = "sha256-ANo9OkdNVCjV5uEqr9lNNbStquNb/3oxuTfMqE2nUzo=";
15+
tag = "cmd/jv/v${version}";
16+
hash = "sha256-bMDDji5daBmjSeGxeS4PZfmTg+b8OVHsP8+m3jtpQJc=";
1717
};
1818

1919
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+
};
2124

22-
vendorHash = "sha256-FuUkC7iwn/jO3fHjT9nGUXc2X1QuuxPc8DAzVpzhANk=";
25+
vendorHash = "sha256-s7kEdA4yuExuzwN3hHgeZmtkES3Zw1SALoEHSNtdAww=";
2326

2427
ldflags = [
2528
"-s"
@@ -29,7 +32,7 @@ buildGoModule rec {
2932
meta = {
3033
description = "JSON schema compilation and validation";
3134
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}";
3336
license = lib.licenses.asl20;
3437
mainProgram = "jv";
3538
maintainers = with lib.maintainers; [ ibizaman ];

0 commit comments

Comments
 (0)