Skip to content

Commit 3e8c06a

Browse files
committed
Update nix files
1 parent 85be772 commit 3e8c06a

File tree

2 files changed

+11
-25
lines changed

2 files changed

+11
-25
lines changed

nix-tools/default.nix

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,21 @@
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"
85
}:
96
let
107
project = pkgs.haskell-nix.cabalProject {
8+
inherit compiler-nix-name;
119
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; }];
2811
};
2912
in
3013
project // {
3114
shell = project.shellFor {
3215
tools = { cabal = "3.2.0.0"; };
16+
buildInputs = [
17+
pkgs.nix-prefetch-git
18+
];
3319
};
3420
}
3521

nix-tools/shell.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
{ haskellCompiler ? "ghc865" }:
2-
(import ./. { inherit haskellCompiler; }).shell
1+
{ sourcesOverride ? {}, compiler-nix-name ? "ghc883" }:
2+
(import ./. { inherit sourcesOverride compiler-nix-name; }).shell
33

0 commit comments

Comments
 (0)