1
0
Fork 0

Add convenience function l.S

Takes the same arguments as l.src but returns the necessary /bin/sh code that
creates a softlink to src and cd's to the location of the current do script.
master
Michael Raitza 2021-02-19 09:27:27 +01:00
parent 224ff92966
commit 6f23f29ba4
1 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,13 @@ let
__functor = self: arg: resolve arg; __functor = self: arg: resolve arg;
src = getSrc root rcwd filter id; src = getSrc root rcwd filter id;
inherit pkgs cwd rcwd d1 d2; 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 _builder = let