18 lines
854 B
Nix
18 lines
854 B
Nix
{ pkgs ? import <nixpkgs> (import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz))
|
|
, haskellCompiler ? "ghc865"
|
|
}:
|
|
pkgs.haskell-nix.cabalProject {
|
|
src = pkgs.haskell-nix.haskellLib.cleanGit { src = pkgs.nix-gitignore.gitignoreSource [] ./.; };
|
|
ghc = pkgs.buildPackages.pkgs.haskell-nix.compiler.${haskellCompiler};
|
|
# pkg-def-extras = [
|
|
# # Additional packages ontop of all those listed in `cabal.project`
|
|
# ];
|
|
# modules = [
|
|
# # Specific package overrides would go here for example:
|
|
# packages.cbors.package.ghcOptions = "-Werror";
|
|
# packages.cbors.patches = [ ./one.patch ];
|
|
# packages.cbors.flags.optimize-gmp = false;
|
|
# # It may be better to set flags in `cabal.project` instead
|
|
# # (`plan-to-nix` will include them as defaults).
|
|
# ];
|
|
}
|