Skip to content
Draft
Show file tree
Hide file tree
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
Empty file.
5 changes: 5 additions & 0 deletions pkgs/by-name/fi/fishPlugins/aliases.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
self: super:
with self;
lib.mkIf config.allowAliases {
autopair-fish = self.autopair; # Added 2023-03-10
}
99 changes: 0 additions & 99 deletions pkgs/shells/fish/plugins/default.nix

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4015,8 +4015,6 @@ with pkgs;

wrapFish = callPackage ../shells/fish/wrapper.nix { };

fishPlugins = recurseIntoAttrs (callPackage ../shells/fish/plugins { });

powerline = with python3Packages; toPythonApplication powerline;

### DEVELOPMENT / COMPILERS
Expand Down
14 changes: 10 additions & 4 deletions pkgs/top-level/by-name-overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ let
# Additionally in either of those alternatives, we would have to duplicate the hardcoding of "README.md"
{ }
else
mapAttrs (name: _: baseDirectory + "/${shard}/${name}/package.nix") (
readDir (baseDirectory + "/${shard}")
);
mapAttrs (name: _: baseDirectory + "/${shard}/${name}") (readDir (baseDirectory + "/${shard}"));

# The attribute set mapping names to the package files defining them
# This is defined up here in order to allow reuse of the value (it's kind of expensive to compute)
Expand All @@ -51,4 +49,12 @@ self: super:
# Because at that point the code in ./stage.nix can be changed to not allow definitions in `all-packages.nix` to override ones from `pkgs/by-name` anymore and throw an error if that happens instead.
_internalCallByNamePackageFile = file: self.callPackage file { };
}
// mapAttrs (name: self._internalCallByNamePackageFile) packageFiles
// mapAttrs (
name: path:
if lib.pathIsRegularFile (path + "/.packageset") then
lib.recurseIntoAttrs (
lib.makeScope self.newScope (setself: import ./by-name-overlay.nix path setself { })
)
else
self._internalCallByNamePackageFile (path + "/package.nix")
) packageFiles
Loading