Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
944 B
Nix
41 lines
944 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "jsonschema";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "santhosh-tekuri";
|
|
repo = "jsonschema";
|
|
tag = "cmd/jv/v${version}";
|
|
hash = "sha256-bMDDji5daBmjSeGxeS4PZfmTg+b8OVHsP8+m3jtpQJc=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/cmd/jv";
|
|
env.GOWORK = "off";
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [ "--version-regex=cmd/jv/v([\\d\\.]+)" ];
|
|
};
|
|
|
|
vendorHash = "sha256-s7kEdA4yuExuzwN3hHgeZmtkES3Zw1SALoEHSNtdAww=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
meta = {
|
|
description = "JSON schema compilation and validation";
|
|
homepage = "https://github.com/santhosh-tekuri/jsonschema";
|
|
changelog = "https://github.com/santhosh-tekuri/jsonschema/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "jv";
|
|
maintainers = with lib.maintainers; [ ibizaman ];
|
|
};
|
|
}
|