1{ lib, config, pkgs, haskellLib, ... }:
5 _file = "haskell.nix/modules/stack-project.nix";
7 # Used by callStackToNix
10 default = "stack.yaml";
12 ignorePackageYaml = mkOption {
17 type = nullOr unspecified;
20 stack-sha256 = mkOption {
24 resolverSha256 = mkOption {
28 materialized = mkOption {
29 type = nullOr (either path package);
31 description = "Location of a materialized copy of the nix files";
33 checkMaterialization = mkOption {
36 description = "If true the nix files will be generated used to check plan-sha256 and material";
40 default = "callCabalProjectToNix";
41 description = "Name of the calling function for better warning messages";
43 nix-tools = mkOption {
44 type = nullOr package;
45 default = pkgs.evalPackages.haskell-nix.internal-nix-tools;
46 description = "nix-tools to use when converting the `plan.json` to nix";
49 # Used by mkStackPkgSet
50 pkg-def-extras = mkOption {
51 type = nullOr (listOf unspecified);
55 type = nullOr (listOf unspecified);
58 extra-hackages = mkOption {
59 type = nullOr (listOf unspecified);
63 # Used in stack-cache-generator.nix
64 sha256map = mkOption {
65 type = nullOr unspecified;
68 An alternative to adding `# nix-sha256:` comments into the
71 { "https://github.com/jgm/pandoc-citeproc"."0.17"
72 = "0dxx8cp2xndpw3jwiawch2dkrkp15mil7pyx7dvd810pwc22pm2q"; };
75 branchMap = mkOption {
76 type = nullOr unspecified;
78 description = "A way to specify in which branch a git commit can be found";
80 lookupBranch = mkOption {
81 type = nullOr unspecified;
82 default = if config.branchMap != null
83 then { location, tag, ...}: config.branchMap.${location}.${tag} or null
87 # Used by stackProject itself
88 compiler-nix-name = mkOption {
90 description = "The name of the ghc compiler to use eg. \"ghc884\"";
94 type = nullOr package;
96 description = "Deprecated in favour of `compiler-nix-name`";
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list