Skip to content

Instantly share code, notes, and snippets.

@agam
Last active May 19, 2020 20:53
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 agam/c80de2716792fdd1cb9a9333d54c47a6 to your computer and use it in GitHub Desktop.
Save agam/c80de2716792fdd1cb9a9333d54c47a6 to your computer and use it in GitHub Desktop.
Nix interaction
agam@ubuntu-s-2vcpu-4gb-sfo3-01:~$ nix search emacs
warning: using cached results; pass '-u' to update the cache

...

* nixpkgs.emacs (emacs)
  The extensible, customizable GNU text editor


* nixpkgs.emacs-nox (emacs-nox)
  The extensible, customizable GNU text editor

...

* nixpkgs.emacs26 (emacs)
  The extensible, customizable GNU text editor
...
agam@ubuntu-s-2vcpu-4gb-sfo3-01:~$ nix-env -i emacs26-nox
error: selector 'emacs26-nox' matches no derivations
agam@ubuntu-s-2vcpu-4gb-sfo3-01:~$ nix-env -i nixpkgs.emacs26-nox
error: selector 'nixpkgs.emacs26-nox' matches no derivations
agam@ubuntu-s-2vcpu-4gb-sfo3-01:~$ nix-env -i emacs-nox
installing 'emacs-nox-26.3'
these paths will be fetched (42.60 MiB download, 152.27 MiB unpacked):
  /nix/store/14h22b5xsm4sfy7k2agxyglq748izvrf-gettext-0.20.1
  /nix/store/6zlr5r85x5j8b9q898ina195brl8zdg6-emacs-26.3
copying path '/nix/store/14h22b5xsm4sfy7k2agxyglq748izvrf-gettext-0.20.1' from 'https://cache.nixos.org'...
copying path '/nix/store/6zlr5r85x5j8b9q898ina195brl8zdg6-emacs-26.3' from 'https://cache.nixos.org'...
building '/nix/store/776qzjq6vfkibglvfdisy0mcdx71wk54-user-environment.drv'...
created 68 symlinks in user environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment