19 lines
510 B
Nix
19 lines
510 B
Nix
{ 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
|
|
|
|
{
|
|
ghc = import ./default.nix { nixpkgs = pinnedPkgs; haskellPackages = pinnedPkgs.haskell.packages.ghc843; };
|
|
ghcjs = import ./default.nix { nixpkgs = pinnedPkgs; haskellPackages = pinnedPkgs.haskell.packages.ghcjs84; };
|
|
}
|