nix-ros-overlay/lib/mk-overlay.nix

13 lines
305 B
Nix
Raw Normal View History

2019-04-16 15:02:56 -04:00
{ 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;
}