freeman42x / haskell-editor-setup

Easy instructions for setting up Haskell editors / IDEs on any major operating system.
GNU General Public License v3.0
101 stars 15 forks source link

Fix user level config #60

Closed freedan42x closed 4 years ago

freedan42x commented 4 years ago

Current user level config, specified in README, does not work.

In ~/.nixpkgs/config.nix:

let
  config = {
    allowUnfree = true;

    packageOverrides = pkgs: with pkgs;
      rec {
      unstable = import <nixpkgs> { inherit config; };

      all = pkgs.buildEnv {
        name = "all";

        paths = [
          haskell.compiler.ghc865
          haskellPackages.cabal-install
          binutils.bintools # required on WSL
        ];
      };
    };
  };
in config

When run nix-env -i all, you get selector 'all' matches no derivations error