How to look up function definitions in nix via nix-repl
- launch nix-repl
nix repl
- import nixpkgs
pkgs = import <nixpkgs> {}
- Look up the definition you want, for instance for
stdenv
pkgs.stdenv.mkDerivation
nix repl
pkgs = import <nixpkgs> {}
stdenv
pkgs.stdenv.mkDerivation