From 90a5233585e1d92d21c4ca40a6b73db225cad93b Mon Sep 17 00:00:00 2001 From: kraanzu Date: Thu, 7 Nov 2024 14:05:03 +0530 Subject: [PATCH] feat: allow users to pass extraPackages --- flake.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 6dbf1249..38348e01 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }; }; }