diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-12-11 17:43:06 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-12-11 17:43:06 +0100 |
| commit | aa723f6680a334cf516e75f50d981a792d5c7a17 (patch) | |
| tree | 2adbfd35befb61e994c43e1f5b3b0845aa96dfe8 /modules/ocaml.nix | |
| parent | 010e12fa7d72c7ba709147469a0cc212d62a7d5b (diff) | |
ocaml : simplify default value for version
Diffstat (limited to 'modules/ocaml.nix')
| -rw-r--r-- | modules/ocaml.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/ocaml.nix b/modules/ocaml.nix index 73eba39..8c42bee 100644 --- a/modules/ocaml.nix +++ b/modules/ocaml.nix @@ -43,9 +43,8 @@ in { enable = mkEnableOption { name = "ocaml"; }; version = mkOption { type = types.uniq types.str; - default = (builtins.parseDrvName cfg.ocamlPackages.ocaml.name).version; - defaultText = literalExample - "(builtins.parseDrvName config.ocaml.ocamlPackages.ocaml.name).version"; + default = cfg.ocamlPackages.ocaml.version; + defaultText = literalExample "cfg.ocamlPackages.ocaml.version"; description = '' The version of OCaml. This option only exist for propagating the version of OCaml through the configuration. As such, it should not be set manually |
