Created
August 22, 2019 11:33
-
-
Save freeman42x/461a5405743497c5aed14c808e951056 to your computer and use it in GitHub Desktop.
Installing all-hies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
How can I add:
to the file above?
So that I can add this to the packages list: