nix: no pseudo-overlay

This commit is contained in:
Fernando Ayats 2022-06-20 12:16:07 +02:00
parent d6b324306b
commit bd95301188

View file

@ -25,8 +25,9 @@
(__substring 4 2 longDate) (__substring 4 2 longDate)
(__substring 6 2 longDate) (__substring 6 2 longDate)
]); ]);
pseudo-overlay = prev: rec { in {
wlroots-hyprland = prev.wlroots.overrideAttrs (_: { overlays.default = _: prev: rec {
wlroots-hyprland = prev.wlroots.overrideAttrs (__: {
version = mkDate (inputs.wlroots.lastModifiedDate or "19700101"); version = mkDate (inputs.wlroots.lastModifiedDate or "19700101");
src = inputs.wlroots; src = inputs.wlroots;
}); });
@ -35,9 +36,9 @@
wlroots = wlroots-hyprland; wlroots = wlroots-hyprland;
}; };
}; };
in {
packages = genSystems (system: packages = genSystems (system:
(pseudo-overlay pkgsFor.${system}) (self.overlays.default null pkgsFor.${system})
// { // {
default = self.packages.${system}.hyprland; default = self.packages.${system}.hyprland;
}); });
@ -46,7 +47,6 @@
nixosModules.default = import ./nix/module.nix self; nixosModules.default = import ./nix/module.nix self;
overlays.default = final: pseudo-overlay;
overlay = throw "Hyprland: .overlay output is deprecated, please use the .overlays.default output"; overlay = throw "Hyprland: .overlay output is deprecated, please use the .overlays.default output";
}; };
} }