2022-09-13 22:18:06 +02:00
|
|
|
# Create a gcroot that keeps all third_party.sources alive
|
|
|
|
nix-build --out-link .gcroots/sources -E '
|
|
|
|
with import ./. {};
|
|
|
|
third_party.nixpkgs.writeText "depot-3p-sources.txt" (
|
|
|
|
toString (
|
|
|
|
builtins.map (s: s.outPath or null) (
|
|
|
|
builtins.attrValues third_party.sources
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)'
|
|
|
|
|
2019-07-02 17:40:51 +02:00
|
|
|
# Configure the local PATH to contain tools which are fetched ad-hoc
|
|
|
|
# from Nix.
|
2022-09-13 22:18:06 +02:00
|
|
|
out=$(nix-build -A tools.depot-deps --out-link .gcroots/depot-deps)
|
2022-05-06 00:41:50 +02:00
|
|
|
PATH_add "$out/bin"
|
2022-05-05 19:18:01 +02:00
|
|
|
|
2022-05-02 12:40:50 +02:00
|
|
|
watch_file tools/depot-deps.nix
|
2022-09-13 22:18:06 +02:00
|
|
|
watch_file third_party/sources/sources.json
|