From aa723f6680a334cf516e75f50d981a792d5c7a17 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sat, 11 Dec 2021 17:43:06 +0100 Subject: ocaml : simplify default value for version --- modules/ocaml.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules') 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 -- cgit v1.2.3