diff --git a/builder.nix b/builder.nix index 1b139d6..127d052 100644 --- a/builder.nix +++ b/builder.nix @@ -21,6 +21,13 @@ let __functor = self: arg: resolve arg; src = getSrc root rcwd filter id; inherit pkgs cwd rcwd d1 d2; + # Convenience function that calculates the source tree, links it to src + # and cd's to the location of the current builder. + S = getSrc root rcwd filter (src: + '' + ln -s ${src} src + cd src/${rcwd} + ''); }; _builder = let