Adds harbor (self.packages) to overlay arguments, allowing custom packages to reference each other via pkgs.harbor. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
32 lines
630 B
Nix
32 lines
630 B
Nix
{
|
|
inputs,
|
|
lib,
|
|
...
|
|
}: {
|
|
systems = [
|
|
"x86_64-linux"
|
|
"x86_64-darwin"
|
|
];
|
|
|
|
perSystem = {
|
|
system,
|
|
self',
|
|
...
|
|
}: {
|
|
# these settings only apply to flake-local packages being built, not to the
|
|
# nixpkgs instance within host and home configurations
|
|
_module.args.pkgs = import inputs.nixpkgs {
|
|
inherit system;
|
|
|
|
overlays = [
|
|
(final: prev: {
|
|
writeNushellApplication = import ./lib/_writeNushellApplication.nix {
|
|
inherit lib;
|
|
pkgs = prev;
|
|
};
|
|
harbor = inputs.self.packages.${system} or {};
|
|
})
|
|
];
|
|
};
|
|
};
|
|
}
|