Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions simpleFlake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,22 @@ let
} else { }
)
//
(
if packages ? default then {
packages.default = packages.default;
} else { }
)
//
(
if packages ? checks then {
checks = packages.checks;
} else { }
)
//
(
if shell != null then {
devShell = shell_ { inherit pkgs; };
} else if packages ? devShell then {
devShell = packages.devShell;
Comment on lines -76 to -77
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is still needed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it also for back-compat? From nix3-develop manual:

Flake output attributes
If no flake output attribute is given, nix develop tries the following
flake output attributes:

   •  devShells.<system>.default

   •  packages.<system>.default

if shell != null then rec {
devShells.${name} = shell_ { inherit pkgs; };
devShells.default = devShells.${name};
} else { }
)
);
Expand Down