You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there, again I'm trying to build ghc in an isolated environment using ghc.nix, but my (direnv+nix-direnv+emacs-direnv) setup is causing an error to be thrown. I fixed the hadrian.cabal file not found error by just moving my shell.nix up one directory into the ghc repository, but the bash error still remains?
Here's the pastebin:
trace: checking if /home/zeta/open-source-projects/haskell-projects/ghc/hadrian/hadrian.cabal is present: yes
bash: /nix/store/hl4m94j3yl7v5jfpn2kq0rkvj5kj428b-ghc-8.8.4-with-packages: Is a directory
And here is the shell.nix that file that I placed with a .envrc file inside the ghc repository root directory(I renamed the default.nix file to ghc-build.nix):
{ pkgs ? import {}}:
let
ghc-build = import ./ghc.nix/ghc-build.nix {};
in
pkgs.mkShell
{
nativeBuildInputs = with pkgs;
[
ghc-build
];
}
Thanks in advance for the help!
The text was updated successfully, but these errors were encountered:
Hello there,
Thanks for the response, my (direnv+nix-direnv+emacs-direnv) setup works great for most small projects that I work on. I think my main issue is, slightly changing ghc.nix's filenames and paths so that it works with my setup. Someone on another issue that I posted here in this repository (#74) said that he got his (direnv+lorri+zsh) setup working out-of-the-box, so I asked him if he could paste his shell.nix code and the extra steps that he did. I think that I'm close to getting this working with my setup, I'm guessing that there's something that I'm missing.
Anyways, thanks again for your response and the link to the documentation, I'll definitely take a look.
Hello there, again I'm trying to build ghc in an isolated environment using ghc.nix, but my (direnv+nix-direnv+emacs-direnv) setup is causing an error to be thrown. I fixed the hadrian.cabal file not found error by just moving my shell.nix up one directory into the ghc repository, but the bash error still remains?
Here's the pastebin:
trace: checking if /home/zeta/open-source-projects/haskell-projects/ghc/hadrian/hadrian.cabal is present: yes
bash: /nix/store/hl4m94j3yl7v5jfpn2kq0rkvj5kj428b-ghc-8.8.4-with-packages: Is a directory
And here is the shell.nix that file that I placed with a .envrc file inside the ghc repository root directory(I renamed the default.nix file to ghc-build.nix):
{ pkgs ? import {}}:
let
ghc-build = import ./ghc.nix/ghc-build.nix {};
in
pkgs.mkShell
{
nativeBuildInputs = with pkgs;
[
ghc-build
];
}
Thanks in advance for the help!
The text was updated successfully, but these errors were encountered: