Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Paul Meyer
@katexochen@infosec.exchange  ·  activity timestamp last week

Some very useful options have been added to nixpkgs config:

nixpkgs.config.rewriteURL: Allows rewriting URLS downloaded by fetchurl, to configure company-internal mirrors, or work around company firewalls and similar networking restrictions.

nixpkgs.config.hashedMirrors: Allows setting content-addressed mirrors that fetchurl can fallback to if the primary URL is unavailable.

nixpkgs.config.{gitConfig, gitConfigFile}: Configures the default git config used by fetchgit. Can be used to point to local mirrors.

nixpkgs.config.npmRegistryOverrides: Configures NPM registry overrides for fetchNpmDeps.

fetchgit gained two new arguments: gitConfigFile to set a git config for an individual derivation, and rootDir to limit the resulting source to a subdirectory of the Git repository.

#NixOS #nixpkgs

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.8 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login