From 127c86e1d497f116239c558250e0dd0aceb2ad46 Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Sun, 24 Nov 2024 18:51:18 -0800 Subject: [PATCH] make flake inputs easily available to classic nix This makes it easier to control the "shape" of the `default.nix`. --- default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/default.nix b/default.nix index 674db3b..1510dfa 100644 --- a/default.nix +++ b/default.nix @@ -228,6 +228,8 @@ let in rec { + inputs = result.inputs // { self = result; }; + defaultNix = (builtins.removeAttrs result ["__functor"]) // (if result ? defaultPackage.${system} then { default = result.defaultPackage.${system}; } else {})