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";
38 nix-tools = mkOption {
40 default = config.evalPackages.haskell-nix.internal-nix-tools; # When building stack projects we use the internal nix-tools (compiled with a fixed GHC version)
41 description = "nix-tools to use when converting the `plan.json` to nix";
44 # Used by mkStackPkgSet
45 pkg-def-extras = mkOption {
46 type = nullOr (listOf unspecified);
50 type = nullOr (listOf unspecified);
53 extra-hackages = mkOption {
54 type = nullOr (listOf unspecified);
58 # Used in stack-cache-generator.nix
59 sha256map = mkOption {
60 type = nullOr unspecified;
63 An alternative to adding `# nix-sha256:` comments into the
66 { "https://github.com/jgm/pandoc-citeproc"."0.17"
67 = "0dxx8cp2xndpw3jwiawch2dkrkp15mil7pyx7dvd810pwc22pm2q"; };
70 branchMap = mkOption {
71 type = nullOr unspecified;
73 description = "A way to specify in which branch a git commit can be found";
75 lookupBranch = mkOption {
76 type = nullOr unspecified;
77 default = if config.branchMap != null
78 then { location, tag, ...}: config.branchMap.${location}.${tag} or null
82 # Used by stackProject itself
83 compiler-nix-name = mkOption {
85 description = "The name of the ghc compiler to use eg. \"ghc884\"";
89 type = nullOr package;
91 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