This PR adds support for flake-compat to the fh init command. If you say yes to the prompt, you get a default.nix, a shell.nix, and a flake-compat input in your flake.nix.
I've tested that this works using these steps:
# Empty project
fh init
# Say "yes" to prompt re: Nix users who don't use flakes
nix-shell
[nix-shell:~/example-flake]$ which curl
/nix/store/kmiapnigv92jwhpzqk2w9mjk0y8y8s6b-curl-8.1.1-bin/bin/curl
This PR adds support for
flake-compat
to thefh init
command. If you say yes to the prompt, you get adefault.nix
, ashell.nix
, and aflake-compat
input in yourflake.nix
.I've tested that this works using these steps: