Skip to content

Instantly share code, notes, and snippets.

@samueldr
Created June 16, 2019 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueldr/8e43824e8f459306f95f62310d1da9db to your computer and use it in GitHub Desktop.
Save samueldr/8e43824e8f459306f95f62310d1da9db to your computer and use it in GitHub Desktop.
~ $ nix-channel --add https://nixos.org/channels/nixos-unstable foobar
~ $ nix-channel --update
unpacking channels...
created 2 symlinks in user environment
~ $ nix repl
Welcome to Nix version 2.2.2. Type :? for help.
nix-repl> <foobar>
/Users/samuel/.nix-defexpr/channels/foobar
nix-repl> x = import <foobar> {}
nix-repl> x.hello
«derivation /nix/store/qfcp8vgqcb74msd71qhiwghi5zx085hw-hello-2.10.drv»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment