Wrote an env file parser for myself, thought I would share it

Figured I would share a simple env file parse I wrote for my own usage. I’ve tried to model it after flake-utils so hopefully it’s not too difficult to become productive with. Hope someone else finds it useful.

Side note: I kind of rolled my own testing solution, so if anyone knows of nice solutions for unit testing a Nix library I’d love to hear about it.

3 Likes

Is there a particular reason you don’t just use source <envfile> in your shellHook?

The learning experience. You’re right that source would probably be fine. I feel like I need projects like this to get more comfortable with languages. Plus, throwing it out there means I get feedback like yours to learn from.

2 Likes