Nix-shell shebangs are really handy.
Today, I needed to write a quick and dirty Python script to do some web page parsing and regexery, so just popped in python311 and python311Packages.
No pyproject.toml, no containers, no Docker, no venv. Run it, use result, then Nix's garbage collector will throwaway the dependencies when we're done.
Also 24 lines of Python with httpx and bs4 that took about 20 minutes just saved me multiple hours of time-consuming work.
@tommorris Hey Tom, do you happen to know a good getting started guide for Nix/NixOS written for mere mortals? I really feel I should be using Nix but every time I look into I get frustrated trying to set up a working system and leave it at that.
@destructatron @tommorris Thanks for the offer. I more wanted to evaluate it as a basis for the deployment of Small Web servers so I was trying to grok how it worked and there’s a huge learning curve. I was just trying to get a taste for it to see if it would be right to base this system I’m building on but it feels a bit too much like Arch Linux in its culture (at least from the outside) and I’m just not smart enough for such things :)
@destructatron @tommorris Sure, if it’s no trouble, I’d appreciate that, thank you :)
@destructatron @tommorris Cool, thank you :)