Skip to content

Instantly share code, notes, and snippets.

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 thoughtpolice/af539fc16f6d19aee8384d5aef57f565 to your computer and use it in GitHub Desktop.
Save thoughtpolice/af539fc16f6d19aee8384d5aef57f565 to your computer and use it in GitHub Desktop.
a@link> nix run -f '<nixpkgs>' hello ~
[1 copied (0.2 MiB), 0.0 MiB DL]
[a@link:~]$ which hello
which: no hello in (/home/a/bin:/run/wrappers/bin:/etc/profiles/per-user/a/bin:/home/a/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin)
[a@link:~]$ exit
[1] a@link> nix run -f '<nixpkgs>' hello -c hello ~
Hello, world!
a@link>
@dtzWill
Copy link

dtzWill commented Mar 20, 2018

o_O

This seems to work for me. Maybe 'which' is caching or somethting ?!. Or maybe your shell does other things with PATH? Hmm...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment