Created
July 27, 2018 22:55
-
-
Save samueldr/aba6b5afe905108af662c995539c5dc8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ $ 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