nixos/core: use inline nix-index override
It was used only in this place
This commit is contained in:
parent
069c5e979a
commit
6e76c7422a
2 changed files with 8 additions and 9 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
{self, super, package }:
|
|
||||||
|
|
||||||
package.override {
|
|
||||||
nix-index-unwrapped = self.nix-index-unwrapped.overrideAttrs (oldAttrs: {
|
|
||||||
patches = oldAttrs.patches or [] ++ [
|
|
||||||
./cnfOutput.patch
|
|
||||||
];
|
|
||||||
});
|
|
||||||
}
|
|
Loading…
Reference in a new issue