How to install by using the ~/.nixpkgs/config.nix
freeman42x opened this issue · 5 comments
freeman42x commented
Could you add a section to the documentation that explains how to do that please?
freeman42x commented
I got it working using the following:
let
all-hies = import (fetchTarball "https://github.com/infinisil/all-hies/tarball/master") {};
config = {
allowUnfree = true;
packageOverrides = pkgs: with pkgs;
let jdk = openjdk11; in rec {
unstable = import <nixpkgs> { inherit config; };
all = pkgs.buildEnv {
name = "all";
paths = [
htop
nox
nix-info
nix-index
google-chrome
nodejs-11_x
binutils.bintools
haskell.compiler.ghc864
haskellPackages.cabal-install
unstable.haskellPackages.stack
unstable.haskellPackages.cabal2nix
haskellPackages.hoogle
haskellPackages.ghcid
haskellPackages.phoityne-vscode
haskellPackages.haskell-dap
(all-hies.selection { selector = p: { inherit (p) ghc864; }; })
];
};
};
};
in config
freeman42x commented
Created a PR for documentation changes: https://github.com/Infinisil/all-hies/pull/21/files
waiting-for-dev commented
Hey @razvan-flavius-panda .
Sorry for the direct mention, but I'd like to ask for your help as I'm also trying to make hie to work in a declarative way (in my case, in a NixOS installation). It seems I got some pieces well but others are missing. I wrote all the details on NixOS discussion forum and on Haskell Cafe mailing list. No luck for now...
Thanks for any advice you can give me...
freeman42x commented
@waiting-for-dev Since HIE is installed and working but only for some use-cases I have no idea.