refactor(nix): re-use overlay for pure packages

This commit is contained in:
seth 2024-11-11 17:05:57 -05:00 committed by Sefa Eyeoglu
parent 872cc0cc08
commit 4e342aa8ee

View file

@ -80,11 +80,13 @@
pkgs = nixpkgsFor.${system};
packages' = self.packages.${system};
refractionPackages = lib.makeScope pkgs.newScope (lib.flip self.overlays.default pkgs);
mkStatic = pkgs.callPackage ./nix/static.nix { };
containerize = pkgs.callPackage ./nix/containerize.nix { };
in
{
refraction = pkgs.callPackage ./nix/package.nix { };
inherit (refractionPackages) refraction;
static-x86_64 = mkStatic { arch = "x86_64"; };
static-aarch64 = mkStatic { arch = "aarch64"; };
@ -95,8 +97,8 @@
}
);
overlays.default = _: prev: {
refraction = prev.callPackage ./nix/package.nix { };
overlays.default = final: _: {
refraction = final.callPackage ./nix/package.nix { };
};
};
}