make flake inputs easily available to classic nix

This makes it easier to control the "shape" of the `default.nix`.
This commit is contained in:
Charles Hall 2024-11-24 18:51:18 -08:00
parent 5adafc5bfb
commit c08b4e14db
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -228,6 +228,8 @@ let
in
rec {
inputs = result.inputs;
defaultNix =
(builtins.removeAttrs result ["__functor"])
// (if result ? defaultPackage.${system} then { default = result.defaultPackage.${system}; } else {})