2021-02-01 01:25:52 +00:00
|
|
|
{ # Fetch the latest haskell.nix and import its default.nix
|
|
|
|
haskellNix ? import (builtins.fetchTarball "https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz") {}
|
|
|
|
|
|
|
|
# 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>'.
|
|
|
|
, nixpkgsSrc ? haskellNix.sources.nixpkgs-2009
|
|
|
|
|
|
|
|
# haskell.nix provides some arguments to be passed to nixpkgs, including some
|
|
|
|
# patches and also the haskell.nix functionality itself as an overlay.
|
|
|
|
, nixpkgsArgs ? haskellNix.nixpkgsArgs
|
|
|
|
|
|
|
|
# import nixpkgs with overlays
|
|
|
|
, pkgs ? import nixpkgsSrc nixpkgsArgs
|
|
|
|
}: pkgs.haskell-nix.project {
|
|
|
|
# 'cleanGit' cleans a source directory based on the files known by git
|
|
|
|
src = pkgs.haskell-nix.haskellLib.cleanGit {
|
|
|
|
name = "mateamt";
|
|
|
|
src = ./.;
|
|
|
|
};
|
|
|
|
# Specify the GHC version to use.
|
|
|
|
compiler-nix-name = "ghc8103"; # Not required for `stack.yaml` based projects.
|
2020-07-31 21:07:05 +00:00
|
|
|
}
|