Created
October 24, 2018 05:13
-
-
Save thefloweringash/1511527c46d22730480c2f2e745ae7ad to your computer and use it in GitHub Desktop.
What is `nix run`? How is it meant to work?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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