How to look up function definitions in nix via nix-repl

  1. launch nix-repl
nix repl
  1. import nixpkgs
pkgs = import <nixpkgs> {}
  1. Look up the definition you want, for instance for stdenv
pkgs.stdenv.mkDerivation