1{ lib, config, pkgs, haskellLib, ... }:
6 # Used by callStackToNix
9 default = config.src.name or null;
10 description = "Optional name for better error messages";
13 type = either path package;
15 stackYaml = mkOption {
17 default = "stack.yaml";
19 ignorePackageYaml = mkOption {
24 type = nullOr unspecified;
27 stack-sha256 = mkOption {
31 resolverSha256 = mkOption {
35 materialized = mkOption {
36 type = nullOr (either path package);
38 description = "Location of a materialized copy of the nix files";
40 checkMaterialization = mkOption {
43 description = "If true the nix files will be generated used to check plan-sha256 and material";
47 default = "callCabalProjectToNix";
48 description = "Name of the calling function for better warning messages";
50 nix-tools = mkOption {
51 type = nullOr package;
52 default = pkgs.evalPackages.haskell-nix.internal-nix-tools;
53 description = "nix-tools to use when converting the `plan.json` to nix";
56 # Used by mkStackPkgSet
57 pkg-def-extras = mkOption {
58 type = nullOr (listOf unspecified);
62 type = nullOr (listOf unspecified);
65 extra-hackages = mkOption {
66 type = nullOr (listOf unspecified);
70 # Used in stack-cache-generator.nix
71 sha256map = mkOption {
72 type = nullOr unspecified;
75 An alternative to adding `# nix-sha256:` comments into the
78 { "https://github.com/jgm/pandoc-citeproc"."0.17"
79 = "0dxx8cp2xndpw3jwiawch2dkrkp15mil7pyx7dvd810pwc22pm2q"; };
82 lookupSha256 = mkOption {
83 type = nullOr unspecified;
84 default = if config.sha256map != null
85 then { location, tag, ...}: config.sha256map.${location}.${tag}
88 branchMap = mkOption {
89 type = nullOr unspecified;
91 description = "A way to specify in which branch a git commit can be found";
93 lookupBranch = mkOption {
94 type = nullOr unspecified;
95 default = if config.branchMap != null
96 then { location, tag, ...}: config.branchMap.${location}.${tag} or null
100 # Used by stackProject itself
101 compiler-nix-name = mkOption {
103 description = "The name of the ghc compiler to use eg. \"ghc884\"";
107 type = nullOr package;
109 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