mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-12 02:34:50 +03:00
12 lines
305 B
Nix
12 lines
305 B
Nix
{ lib }:
|
|
with lib;
|
|
rec {
|
|
applyOverlays = self: super: overlays: let
|
|
curSuper = applyOverlays self super (init overlays);
|
|
in if length overlays == 0 then super
|
|
else curSuper // (last overlays) self curSuper;
|
|
|
|
mkOverlay = overlays: let
|
|
self = applyOverlays self {} overlays;
|
|
in self;
|
|
}
|