Skip to content

Instantly share code, notes, and snippets.

@samueldr
Created July 27, 2018 22:55
Show Gist options
  • Save samueldr/aba6b5afe905108af662c995539c5dc8 to your computer and use it in GitHub Desktop.
Save samueldr/aba6b5afe905108af662c995539c5dc8 to your computer and use it in GitHub Desktop.
~ $ echo $NIX_PATH
/etc/nixos:nixpkgs=/etc/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels:nixpkgs-overlays=/etc/nixos/modules/overlays-compat/
~ $ export NIX_PATH=$NIX_PATH:foo=$HOME/tmp/nixpkgs/
~ $ nix repl
Welcome to Nix version 2.0.4. Type :? for help.
nix-repl> <foo>
/Users/samuel/tmp/nixpkgs
nix-repl> foo = import <foo> {}
nix-repl> foo.hello
«derivation /nix/store/knbqh65jsprqxxyg6sial5wq0aa187xa-hello-2.10.drv»
nix-repl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment