Files
nixpkgs/pkgs/data/json-schema/catalogs/json-schema.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

40 lines
1.2 KiB
Nix

{
fetchurl,
lib,
newCatalog,
}:
newCatalog {
name = "json-schema";
displayName = "JSON Schema Metaschemas";
groups = {
"JSON Schema" = {
"http://json-schema.org/draft-04/schema#" = fetchurl {
name = "json-schema-draft-04";
url = "https://json-schema.org/draft-04/schema";
hash = "sha256-4UidC0dV8CeTMCWR0/y48Htok6gqlPJIlfjk7fEbguI=";
};
"http://json-schema.org/draft-06/schema#" = fetchurl {
name = "json-schema-draft-06";
url = "https://json-schema.org/draft-06/schema";
hash = "sha256-AGTogLohS/8c7lEeZ4++SMmCbdNZ6R4kI/w23mey6+E=";
};
"http://json-schema.org/draft-07/schema#" = fetchurl {
name = "json-schema-draft-07";
url = "https://json-schema.org/draft-07/schema";
hash = "sha256-aS4dFl5Hr8tfEbLOHGOWNf+oNANdbstrzzCHSB2uhAQ=";
};
# Unclear how newer metaschemas should be handled, so leaving them out for now.
# https://github.com/roberth/json-schema-catalog-rs/issues/8
};
};
meta = {
maintainers = with lib.maintainers; [ roberth ];
# https://github.com/json-schema-org/json-schema-spec/blob/main/LICENSE
license = [
lib.licenses.bsd3
lib.licenses.afl3
];
};
}