serokell / ghc.dev

The https://ghc.dev Website Generator
https://ghc.dev
21 stars 8 forks source link

Update ghc.nix instructions, pointing to the new home of ghc.nix #25

Closed sgraf812 closed 5 days ago

sgraf812 commented 6 days ago

Initialising the flake template

int-index commented 6 days ago

Thanks, but could you not assume the use of direnv?

int-index commented 6 days ago

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
int-index commented 6 days ago

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
sgraf812 commented 5 days ago

Great idea! I added a commit that adds your suggestion.