diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-03-07 11:02:02 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-03-07 11:21:19 +0100 |
commit | e162ed8a142d6ff53b7d03018bfd95a3a044bd06 (patch) | |
tree | d5c08fb81436c984007e7264e46bdb90ed2714da /lib | |
parent | db08290453ae0eb7622648435bf7af187929b153 (diff) | |
download | nixpkgs-e162ed8a142d6ff53b7d03018bfd95a3a044bd06.tar nixpkgs-e162ed8a142d6ff53b7d03018bfd95a3a044bd06.tar.gz nixpkgs-e162ed8a142d6ff53b7d03018bfd95a3a044bd06.tar.bz2 nixpkgs-e162ed8a142d6ff53b7d03018bfd95a3a044bd06.tar.lz nixpkgs-e162ed8a142d6ff53b7d03018bfd95a3a044bd06.tar.xz nixpkgs-e162ed8a142d6ff53b7d03018bfd95a3a044bd06.tar.zst nixpkgs-e162ed8a142d6ff53b7d03018bfd95a3a044bd06.zip |
lib/modules.nix: Move comment to the actual legacy code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/modules.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/modules.nix b/lib/modules.nix index cc045391fcb..5d1532af623 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -799,13 +799,14 @@ rec { compare = a: b: (a.priority or 1000) < (b.priority or 1000); in sort compare defs'; - /* Hack for backward compatibility: convert options of type - optionSet to options of type submodule. FIXME: remove - eventually. */ fixupOptionType = loc: opt: let options = opt.options or (throw "Option `${showOption loc}' has type optionSet but has no option attribute, in ${showFiles opt.declarations}."); + + # Hack for backward compatibility: convert options of type + # optionSet to options of type submodule. FIXME: remove + # eventually. f = tp: let optionSetIn = type: (tp.name == type) && (tp.functor.wrapped.name == "optionSet"); in |