Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
What is `nix run`? How is it meant to work?
$ nix run nixpkgs.rubocop
error: attribute 'nixpkgs' in selection path 'nixpkgs.rubocop' not found
$ nix run -f '<nixpkgs>' rubocop
tourou:~ lorne$ which rubocop
/run/current-system/sw/bin/rubocop
tourou:~ lorne$ exit
$ nix run -f '<nixpkgs>' rubocop -c which rubocop
/nix/store/j7my41m8s9irhyczlscy6yd5lcgsclck-rubocop-0.59.1/bin/rubocop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment