Guest User

Untitled

a guest
Oct 30th, 2019
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. nix-repl> pkgs.config
  2. { allowUnfree = true; }
  3.  
  4. nix-repl> pkgs.cudatoolkit
  5. error: Package ‘cudatoolkit-9.2.148.1’ in /nix/store/kzd44wh814pdrb7ickivrvlf1jdj48yl-nixpkgs-unstable/pkgs/development/compilers/cudatoolkit/default.nix:187 has an unfree license (‘unfree’), refusing to evaluate.
  6.  
  7. a) For `nixos-rebuild` you can set
  8. { nixpkgs.config.allowUnfree = true; }
  9. in configuration.nix to override this.
  10.  
  11. b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  12. { allowUnfree = true; }
  13. to ~/.config/nixpkgs/config.nix.
  14.  
  15. «derivation
Advertisement
Add Comment
Please, Sign In to add comment