nix-community / bundix

Generates a Nix expression for your Bundler-managed application. [maintainer=@manveru]
160 stars 54 forks source link

Enable fetching of private git repos. When fetching git repos, use bundler credentials if they exist. #115

Open jbernie2 opened 2 months ago

jbernie2 commented 2 months ago

For private repos, use credentials provided by bundler if they exist. The credentials can be specified either via the bundler config file, or through an environment variable.

For example, github credentials can be provider via the BUNDLER_GITHUB__COM environment variable or by setting the same value in the local .bundler/config file.

The credentials are then added to the uri and passed to the nix-prefetch-git command to fetch the repo.