-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstack.nix
30 lines (23 loc) · 1005 Bytes
/
stack.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
let
# Pin haskell-nix to a recent (as of 2021/08/02) commit
h8x-pin = "https://github.com/input-output-hk/haskell.nix/archive/a4234bfaa21f735b2bd973c2d51bf16b220b13fa.tar.gz";
h8x-src = builtins.fetchTarball h8x-pin;
h8x = import h8x-src {};
# Import nixpkgs and pass the haskell.nix provided nixpkgsArgs
pkgs = import
# haskell.nix provides access to the nixpkgs pins which are used by our CI,
# hence you will be more likely to get cache hits when using these. But you
# can also just use your own, e.g. '<nixpkgs>'.
h8x.sources.nixpkgs-2105
# These arguments passed to nixpkgs, include some patches and also the
# haskell.nix functionality itself as an overlay.
h8x.nixpkgsArgs;
in pkgs.haskell-nix.stackProject {
# 'cleanGit' cleans a source directory based on the files known by git
src = pkgs.haskell-nix.haskellLib.cleanGit {
name = "docker-tmp-proc";
src = ./.;
};
# Specify the GHC version to use.
compiler-nix-name = "ghc8105";
}