Michael Raitza
139fb213b9
Treat all symlinks in sources as to-be-built files
...
This means symlinks can never be ordinary inputs.
2021-02-19 20:28:59 +01:00
Michael Raitza
5e28e35f94
Properly wrap scripts with runtime binaries
2021-02-19 20:28:49 +01:00
Michael Raitza
82e3cf72dc
Implement recursive path building in getSrc
...
${l.S ...} now tries to build its arguments when they do not exist, yet. It
behaves like a redo-ifchange, now.
2021-02-19 19:52:44 +01:00
Michael Raitza
6f23f29ba4
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.
2021-02-19 09:27:27 +01:00
Michael Raitza
224ff92966
Extend getSrc to take an outFunc which operates on the filtered sources
2021-02-19 09:18:10 +01:00
Michael Raitza
5e3b992c6f
Extend getSrc to allow specifying subtrees of sources.
...
Using ${l.src dir} will include the whole subtree as a dependency.
2021-02-18 22:28:04 +01:00
Michael Raitza
69bd805cc6
Implement the getSrc combinator
...
Allows the use of ${l.src ./foo ./bar} to generate a sparse source tree, used
for the do script. This disects the source tree into those piece actually needed
to build the target.
- boosts clarity as all sources have to be explicitly specified
- targets that don't use eachothers sources should be independent now
2021-02-18 21:06:02 +01:00
Michael Raitza
d0d5b30f6a
Add src directory location info with cwd and (relative) rcwd
2021-02-17 18:54:57 +01:00
Michael Raitza
9c20083680
cleanup lib
2021-02-17 18:41:56 +01:00
Michael Raitza
7405c29521
Move src filter into redo.getSrc.
2021-02-17 14:42:43 +01:00
Michael Raitza
e6729e269f
Copy source tree to non-nix-builder build directory and cd to the right spot
2021-02-17 14:06:04 +01:00
Michael Raitza
034aa74e81
Pimp nixredo-gc to work around broken gcroots in local store
...
Add fake gcroots which have the right looks when running GC. Remove them after
GC finished.
2021-02-17 14:05:15 +01:00
Michael Raitza
52f6a2badf
Move TMPDIR next to NIXREDO_ROOT
2021-02-17 14:03:26 +01:00
Michael Raitza
870493c34b
remove trace
2021-02-17 11:00:13 +01:00
Michael Raitza
8f4aa0fcb3
Add nixredo-gc
2021-02-17 10:44:08 +01:00
Michael Raitza
bc0989e0b7
Add filtered src tree to non-nix redo targets
2021-02-17 10:43:26 +01:00
Michael Raitza
2e6ec04d74
Fix outputs to out
2021-02-17 09:45:12 +01:00
Michael Raitza
696271700a
handle simultaneous writes to stdout and $3
2021-02-17 09:23:25 +01:00
Michael Raitza
dd8952be85
Add nixredo-whichdo; Put do file discovery into nix
2021-02-16 20:32:15 +01:00
Michael Raitza
fc8781a2e0
Add nixredo-deps; Use outputs from local store when available
2021-02-16 13:17:01 +01:00
Michael Raitza
799b381502
Initial commit.
...
nixredo. No default.do resolution.
2021-02-14 23:40:26 +01:00