1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-07-14 06:00:38 +03:00
nix-ros-overlay/mk-overlay.nix
2019-04-16 15:02:56 -04:00

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;
}