all repos — searchix @ 51f774aaced998ad3c7c31e370aea22cc2fdbbc5

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat(importer): process packages from nixpkgs package.json

Alan Pearce
commit

51f774aaced998ad3c7c31e370aea22cc2fdbbc5

parent

9a2885694e2f8153151cc92772d2bea85672939a

1 file changed, 17 insertions(+), 5 deletions(-)

changed files
M internal/config/config.gointernal/config/config.go
@@ -87,6 +87,12 @@ Web *Web
Importer *Importer } +var nixpkgs = Repository{ + Type: "github", + Owner: "NixOS", + Repo: "nixpkgs", +} + var defaultConfig = Config{ DataPath: "./data", Web: &Web{
@@ -117,11 +123,7 @@ Attribute: "options",
OutputPath: "share/doc/nixos/options.json", FetchTimeout: 5 * time.Minute, ImportTimeout: 15 * time.Minute, - Repo: Repository{ - Type: "github", - Owner: "NixOS", - Repo: "nixpkgs", - }, + Repo: nixpkgs, }, "darwin": { Name: "Darwin",
@@ -158,6 +160,16 @@ Type: "github",
Owner: "nix-community", Repo: "home-manager", }, + }, + "nixpkgs": { + Name: "Nix Packages", + Key: "nixpkgs", + Enable: true, + Type: ChannelNixpkgs, + OutputPath: "packages.json.br", + FetchTimeout: 5 * time.Minute, + ImportTimeout: 15 * time.Minute, + Repo: nixpkgs, }, }, },