Closed sgraf812 closed 5 days ago
Thanks, but could you not assume the use of direnv?
Also I'm getting this error when I try the new command
$ nix flake init -t git+https://gitlab.haskell.org/ghc/ghc.nix
warning: redirecting to https://gitlab.haskell.org/ghc/ghc.nix.git/
fatal: not a git repository: '.'
error:
… while fetching the input 'git+https://gitlab.haskell.org/ghc/ghc.nix'
error: program 'git' failed with exit code 128
This worked:
$ nix flake init -t git+https://gitlab.haskell.org/ghc/ghc.nix.git
but it pollutes the repo with .envrc
and flake.nix
. What about
$ nix develop git+https://gitlab.haskell.org/ghc/ghc.nix.git -c $SHELL
Great idea! I added a commit that adds your suggestion.
Initialising the flake template