|
1 |
| -{ haskellNixSrc ? builtins.fetchTarball { |
2 |
| - url = "https://github.com/input-output-hk/haskell.nix/archive/61b1c8a06c74a83c0d2dc7d937d8daa6b32b2a2f.tar.gz"; |
3 |
| - sha256 = "1vi8is7h85sb8acymjcnkjm39fp5pal2wq9p7zdv5cmillzs2sza"; |
4 |
| - } |
5 |
| -, nixpkgs ? (import haskellNixSrc {}).sources.nixpkgs-default |
6 |
| -, pkgs ? import nixpkgs (import haskellNixSrc {}).nixpkgsArgs |
7 |
| -, haskellCompiler ? "ghc883" |
| 1 | +{ sourcesOverride ? {} |
| 2 | +, sources ? (import ./nix/sources.nix {}) // sourcesOverride |
| 3 | +, pkgs ? (import sources."haskell.nix" {}).pkgs |
| 4 | +, compiler-nix-name ? "ghc883" |
8 | 5 | }:
|
9 | 6 | let
|
10 | 7 | project = pkgs.haskell-nix.cabalProject {
|
| 8 | + inherit compiler-nix-name; |
11 | 9 | src = pkgs.haskell-nix.haskellLib.cleanGit { src = ./.; name = "nix-tools"; };
|
12 |
| - ghc = pkgs.haskell-nix.compiler.${haskellCompiler}; |
13 |
| - modules = [{ |
14 |
| - nonReinstallablePkgs= [ "rts" "ghc-heap" "ghc-prim" "integer-gmp" "integer-simple" "base" |
15 |
| - "deepseq" "array" "ghc-boot-th" "pretty" "template-haskell" |
16 |
| - # ghcjs custom packages |
17 |
| - "ghcjs-prim" "ghcjs-th" |
18 |
| - "ghc-boot" |
19 |
| - "ghc" "Win32" "array" "binary" "bytestring" "containers" |
20 |
| - "directory" "filepath" "ghc-boot" "ghc-compact" "ghc-prim" |
21 |
| - # "ghci" "haskeline" |
22 |
| - "hpc" |
23 |
| - "mtl" "parsec" "process" "text" "time" "transformers" |
24 |
| - "unix" "xhtml" |
25 |
| - # "stm" "terminfo" |
26 |
| - ]; |
27 |
| - }]; |
| 10 | + modules = [{ reinstallableLibGhc = true; }]; |
28 | 11 | };
|
29 | 12 | in
|
30 | 13 | project // {
|
31 | 14 | shell = project.shellFor {
|
32 | 15 | tools = { cabal = "3.2.0.0"; };
|
| 16 | + buildInputs = [ |
| 17 | + pkgs.nix-prefetch-git |
| 18 | + ]; |
33 | 19 | };
|
34 | 20 | }
|
35 | 21 |
|
0 commit comments