Skip to content

Instantly share code, notes, and snippets.

@freeman42x
Created August 22, 2019 11:33
Show Gist options
  • Save freeman42x/461a5405743497c5aed14c808e951056 to your computer and use it in GitHub Desktop.
Save freeman42x/461a5405743497c5aed14c808e951056 to your computer and use it in GitHub Desktop.
Installing all-hies
let
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
];
};
};
};
in config
@freeman42x
Copy link
Author

How can I add:

let
  all-hies = import (fetchTarball "https://github.com/infinisil/all-hies/tarball/master") {};

to the file above?

So that I can add this to the packages list:

(all-hies.selection { selector = p: { inherit (p) ghc864; }; })

@freeman42x
Copy link
Author

This works:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment