summaryrefslogtreecommitdiff
path: root/modules/why3.nix
blob: 2e8a861cf6dacb265319e64076ed719ed0d07612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ lib, ... }:

let
  cfg = config.why3;
  why3Flags = concatStringsSep " " ([ ("-C '${cfg.configFile}'") ]);
in {
  options.why3 = {
    enable = lib.mkEnableOption "why3";
    configFile = lib.mkOption {
      type = lib.types.path;
      default = ~/.why3.conf;
      defaultText = literalExample "~/.why3.conf";
      description = ''
        The path to the why3 config file.
      '';
    };
  };
}