summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmily <vcs@emily.moe>2023-06-22 13:08:42 +0100
committerEmily <vcs@emily.moe>2023-06-24 10:48:55 +0100
commit9d6702cf2b81f5d0ef9d628d99e8deb45f84b454 (patch)
tree60506865a377eedabf6b77e2da800775c2435d41
parent42d1643e7a79aa9a0c6bf50e5944fec4e5c492f2 (diff)
eval-config: remove compatibility shims
20.03 and 22.03 are both deprecated.
-rw-r--r--eval-config.nix14
1 files changed, 2 insertions, 12 deletions
diff --git a/eval-config.nix b/eval-config.nix
index c30d88c..4b71303 100644
--- a/eval-config.nix
+++ b/eval-config.nix
@@ -42,24 +42,14 @@ let
};
};
- libExtended = lib.extend (self: super: {
- # Added in nixpkgs #136909, adds forward compatibility until 22.03 is deprecated.
- literalExpression = super.literalExpression or super.literalExample;
- literalDocBook = super.literalDocBook or super.literalExample;
- });
-
- eval = libExtended.evalModules (builtins.removeAttrs args [ "lib" "inputs" "pkgs" "system" ] // {
+ eval = lib.evalModules (builtins.removeAttrs args [ "lib" "inputs" "pkgs" "system" ] // {
modules = modules ++ [ argsModule pkgsModule ] ++ baseModules;
specialArgs = { modulesPath = builtins.toString ./modules; } // specialArgs;
});
-
- # Was moved in nixpkgs #82751, so both need to be handled here until 20.03 is deprecated.
- # https://github.com/NixOS/nixpkgs/commits/dcdd232939232d04c1132b4cc242dd3dac44be8c
- _module = eval._module or eval.config._module;
in
{
- inherit (_module.args) pkgs;
+ inherit (eval._module.args) pkgs;
inherit (eval) options config;
system = eval.config.system.build.toplevel;