Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
636 B · 28 lines
Nix
1234567891011121314151617181920212223242526272829{ lib, newScope, json-schema-catalog-rs, jsonschema-cli,}:let inherit (lib) concatMapAttrs optionalAttrs; inherit (lib.strings) hasSuffix removeSuffix;
jsonSchemaCatalogs = lib.makeScope newScope ( self: { inherit ((self.callPackage ./lib.nix { }).lib) newCatalog; tests = self.callPackage ./tests.nix { }; } // concatMapAttrs ( k: v: optionalAttrs (v == "regular" && hasSuffix ".nix" k) { ${removeSuffix ".nix" k} = self.callPackage (./catalogs + "/${k}") { }; } ) (builtins.readDir ./catalogs) );in{ # Exported to `pkgs` inherit jsonSchemaCatalogs;}