now exposes package located inside overlays.default

todo: add filter based on meta.platforms
This commit is contained in:
Jermeiah S 2025-06-14 10:25:36 -04:00
parent 088ac72632
commit 57f4448826
No known key found for this signature in database

View file

@ -0,0 +1,24 @@
{ inputs, ... }:
{
perSystem =
{
system,
...
}:
let
overlay = inputs.self.overlays.default;
# Apply the overlay to nixpkgs
customPkgs = import inputs.nixpkgs {
inherit system;
overlays = [ overlay ];
};
# Automatically extract only the packages added by the overlay
# You could also list them manually
generatedPackages = builtins.intersectAttrs (overlay customPkgs customPkgs) customPkgs;
in
{
packages = generatedPackages;
};
}