2018-08-29 22:43:44 +03:00
|
|
|
{ nixpkgs ? import <nixpkgs> {} }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
pinnedVersion = nixpkgs.lib.importJSON ./nixpkgs-version.json;
|
|
|
|
pinnedPkgs = import (nixpkgs.fetchFromGitHub {
|
|
|
|
owner = "NixOS";
|
|
|
|
repo = "nixpkgs";
|
|
|
|
inherit (pinnedVersion) rev sha256;
|
|
|
|
}) {};
|
|
|
|
inherit (pinnedPkgs) pkgs;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
2018-11-12 23:40:04 +02:00
|
|
|
{
|
|
|
|
ghc = import ./default.nix { nixpkgs = pinnedPkgs; haskellPackages = pinnedPkgs.haskell.packages.ghc843; };
|
|
|
|
ghcjs = import ./default.nix { nixpkgs = pinnedPkgs; haskellPackages = pinnedPkgs.haskell.packages.ghcjs84; };
|
|
|
|
}
|