I'm currently working with code from the UMD EURIQA team and have forked nix-scripts and added their package to the building process (via making a nix file in artiq-fast/pkgs and adding a couple of python deps, then adding the package to default.nix). I'm building with ARTIQ release-4 and the changes discussed in #1346. I've got the package to build and install correctly as far as I can tell, and am now trying to add one of their gateware builds. I added it in artiq-full.nix in the same way that the sayma builds at the end are added (with artiq-board), but with a different build command (python -m euriqabackend.gateware.kc705_soc). I was hoping that I could just use artiq-board, but I'm running into the following error:
<3>make: Entering directory '/build/artiq4_kc705_euriqa/euriqa/software/bootloader'
<3> CARGO cargo/or1k-unknown-none/debug/libbootloader.a
<3>error: failed to load source for a dependency on `smoltcp`
<3>
<3>Caused by:
<3> Unable to update https://github.com/m-labs/smoltcp?rev=92e970b#92e970b3
<3>
<3>Caused by:
<3> failed to open: /nix/store/mnymfg3c4fw1qzhgzhbgyr1in89yxa03-artiq-firmware-cargo-vendored/git/.cargo-lock-git
<3>
<3>Caused by:
<3> Permission denied (os error 13)
<3>make: *** [Makefile:10: cargo/or1k-unknown-none/debug/libbootloader.a] Error 101
<3>make: Leaving directory '/build/artiq4_kc705_euriqa/euriqa/software/bootloader'
<3>Command make -C /build/artiq4_kc705_euriqa/euriqa/software/bootloader failed
<3>builder for '/nix/store/j5j9n1rkpjp30r17rqpvvmzkfvq1157j-artiq-board-kc705-euriqa-4.6403.7cf25f85.beta.drv' failed with exit code 1
I also noticed that the folder "/git" doesn't exist when I manually check following the error, but that doesn't match up with a permissions error, so I'm not entirely sure what the actual problem is.
@sb10q has suggested that it may be a cargoSha256 mismatch, but I'm not sure how to verify that, or how to fix it if that is the case.