Skip to content

Commit

Permalink
Use python's final pkgs for overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
n8henrie committed Mar 1, 2024
1 parent a49d2da commit d75e2fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
File renamed without changes.
27 changes: 5 additions & 22 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,11 @@
systems;
in
{
overlays.default = _: prev: rec {
python3 = let
packageOverrides = _: _: {
inherit (self.outputs.packages.${prev.system}) fauxmo;
};
in
prev.python3.override {
inherit packageOverrides;
self = python3;
};
overlays.default = _: prev: {
pythonPackagesExtensions =
prev.pythonPackagesExtensions
++ [(py-final: _: {fauxmo = py-final.callPackage ./. {};})];
};

# pythonPackagesExtensions =
# prev.pythonPackagesExtensions
# ++ [
# (
# _: _: {
# inherit (self.outputs.packages.${prev.system}) fauxmo;
# }
# )
# ];
# };
}
// systemGen ({
pkgs,
Expand All @@ -56,7 +39,7 @@
self.outputs.packages.${system}.fauxmo
uvloop
]);
fauxmo = pkgs.callPackage ./fauxmo.nix {};
fauxmo = pkgs.callPackage ./. {};
};

nixosModules = {
Expand Down

0 comments on commit d75e2fc

Please sign in to comment.