feat(importer): process packages from nixpkgs package.json
1 file changed, 17 insertions(+), 5 deletions(-)
changed files
M internal/config/config.go → internal/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, }, }, },