1
0
Fork 0
nix-scripts/extended-tests.py

14 lines
316 B
Python

import json
import sys
with open(sys.argv[1], "r") as f:
hydra_json = json.load(f)
drv = hydra_json["drvPath"]
assert drv.startswith("/nix/store/")
drv = drv[len("/nix/store/"):]
hydra_log = "/var/lib/hydra/build-logs/" + drv[:2] + "/" + drv[2:]
with open(hydra_log, "w") as f:
f.write("hack successful")