hello there, i had this ihaskell let in expression working fine in home.nix, but when i decided to place this ihaskell expression in a shell.nix file to use with my (lorri+direnv+emacs-direnv) setup to get ihaskell working in an isolated environment, i was able to get it to run in a nix-shell without any errors. Anyways, when i went into a nix-shell, it automatically opened up emacs for me, but inside emacs, the ihaskell command is not being recognized? if you don’t mind taking a look in my shell.nix file and telling me what’s wrong and how to fix it so that i can get ihaskell working in an isolated environment, thanks in advance, here’s my shell.nix configuration:
let
pkgs = import {};
in
with pkgs;
mkShell
{
inputsFrom = with pkgs;
[
(let
ihaskell = fetchFromGitHub
{
owner = “gibiansky”;
repo = “IHaskell”;
rev = “36f0acdeaabf908265aed4ce7c5b0333db1ee815”;
sha256 = “18rcsxz6gsrpnapgfdiis1k376147bn2hk591isj22f6f0b9fhn6”;
};
in import “${ihaskell}/release.nix”
{
compiler = “ghc883”;
nixpkgs = pkgs;
packages = self: with self;
[
ihaskell
ihaskell-aeson
# ihaskell-basic
ihaskell-blaze
# ihaskell-charts
# ihaskell-diagrams
# ihaskell-display
# ihaskell-gnuplot
ihaskell-graphviz
ihaskell-hatex
# ihaskell-hvega
# ihaskell-inline-r
ihaskell-juicypixels
ihaskell-magic
# ihaskell-parsec
# ihaskell-plot
# ihaskell-rlangqq
# ihaskell-widgets
];
}
)
];
shellHook =
''
export EDITOR="$(emacs)";
'';
} # end of mkShell