How to use Nix to download packages from hydra.iohk.org?

Alert: NIX-NOOB

Since hydra.IOHK.org already has pre-built cardano-node, cardano-cli, etc., we want nix-shell invocations to download a specific version (eg, v1.30.0) of these binsrather than build them locally. For example, we invoke nix-shell on a .nix file which contains

with import <nixpkgs> {};

mkShell {
  buildInputs = [
    gawk
    gnugrep
  ];

which pulls awk and grep pkgs from cache.nixos.org. How can we do the same v1.30.0 of cardano-node and cardano-cli? We have hydra.iohk.org as substituter in in nix.conf, but don’t know how to properly reference the cardano bins.

1 Like