Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've been trying out Nix lately and did something similar to get a croc binary. My system package manager didn't have croc and also didn't have the Go version required to compile croc, but Nix did have the latest Go.

Ran this:

  nix-shell -p go --run "go install github.com/schollz/croc/v9@latest"
and got it compiled. In retrospect, I should have just used the croc package in Nix, but the simplicity of this approach is a vast improvement over the alternative of getting Go myself and cluttering up my system with random build tools for one-off compilations.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: