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; }; }; }