mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-14 11:38:39 +03:00
13 lines
305 B
Nix
13 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;
|
||
|
}
|