nixos/core: use inline nix-index override

It was used only in this place
This commit is contained in:
Wroclaw 2024-07-09 11:22:27 +02:00
parent 069c5e979a
commit 6e76c7422a
2 changed files with 8 additions and 9 deletions

View file

@ -82,6 +82,14 @@ in
# Use nix-index for command-not-found handler # Use nix-index for command-not-found handler
programs.command-not-found.enable = false; programs.command-not-found.enable = false;
programs.nix-index = { programs.nix-index = {
package = pkgs.nix-index.override {
nix-index-unwrapped = pkgs.nix-index-unwrapped.overrideAttrs (oldAttrs: {
patches = oldAttrs.patches or [] ++ [
../pkgs/by-name/ni/nix-index/cnfOutput.patch
];
});
};
enable = true; enable = true;
enableBashIntegration = true; enableBashIntegration = true;
}; };

View file

@ -1,9 +0,0 @@
{self, super, package }:
package.override {
nix-index-unwrapped = self.nix-index-unwrapped.overrideAttrs (oldAttrs: {
patches = oldAttrs.patches or [] ++ [
./cnfOutput.patch
];
});
}