Skip to content

Commit

Permalink
feat: allow users to pass extraPackages
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Nov 7, 2024
1 parent 44330fd commit 90a5233
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
}
);

packageFor = system:
pkgsFor.${system}.callPackage ./nix {}
// {
override = attrs: (packageFor system).overrideAttrs (_: attrs);
packageFor = system: extraPackages:
pkgsFor.${system}.callPackage ./nix {
inherit extraPackages;
};
in {
packages = forEachSystem (
system: {
default = packageFor system;
default = packageFor system [];
}
);

overlay = final: prev: {
dooit = packageFor final.system;
dooit = extraPackages: packageFor final.system extraPackages;
};
};
}

0 comments on commit 90a5233

Please sign in to comment.