nmattia / niv

Easy dependency management for Nix projects
https://github.com/nmattia/niv
MIT License
1.55k stars 77 forks source link

Add NIV_OVERRIDE_{...} #260

Closed nmattia closed 4 years ago

nmattia commented 4 years ago

This updates the sources.nix to replace the outPath field of package foo with the content of envionment variable NIV_OVERRIDE_foo. In the environment variable name, all characters outside of [a-zA-Z0-9_] are escaped to _.