now exposes package located inside overlays.default
todo: add filter based on meta.platforms
This commit is contained in:
parent
088ac72632
commit
57f4448826
1 changed files with 24 additions and 0 deletions
24
modules/flake/packages.nix
Normal file
24
modules/flake/packages.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue