Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

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
You can’t perform that action at this time.