Once in the repl, start by importing the sources. Assuming you’re using Niv, those are typically at ./nix/sources.nix
. It’s easiest to assign those to a variable. Then import their nixpkgs by calling it with an empty attribute set.
x = import ./nix/sources.nix
y = import x.nixpkgs {}