Hello,
due to issues using Phaser on RISC-V cores (#1757), but willing to recent ARTIQ-7, I'd like to pin the ARTIQ revision in a Nix shell/flake to before the RISC-V switch. What's the best way to do this?
An obvious way is to fetch an old build like below, but this won't work forever because the builds seem only to be kept on Hydra for some time. Is that indeed the case?
{ pkgs ? import <nixpkgs> { } }:
let
artiq-fast = import (fetchTarball {
# 2cf144a6 from 2021-09-06
url = "https://nixbld.m-labs.hk/build/33571/download/1/nixexprs.tar.xz";
sha256 = "15vzs8p5a83cykm3axlrvgpxa2ykvcs70w5fnhf1sz3br0pmhnd5";
}) { inherit pkgs; };
in pkgs.mkShell {
buildInputs = [ (pkgs.python3.withPackages (ps: [ artiq-fast.artiq ])) ];
}
An alternative would be to fetch the target ARTIQ source from git and build it with an old revision of the nix-scripts
, but this is not very convenient because artiqSrc
is a file lookup and not an argument of artiq-fast/default.nix
. Did I miss something here?