You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you try to build something unfree, you get a message like this:
$ nix build nixpkgs#cudatoolkit
error: --- ThrownError --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix
Package ‘cudatoolkit-10.2.89’ in /nix/store/9xsn9g209bvbl324kska98xzsnr4ls95-source/pkgs/development/compilers/cudatoolkit/common.nix:214 has an unfree license (‘unfree’), refusing to evaluate.
a) For `nixos-rebuild` you can set
{ nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.
b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.
(use '--show-trace' to show detailed location information)
cached failure of attribute 'legacyPackages.x86_64-linux.cudatoolkit.drvPath'
I think we may need to rethink how args work w.r.t. flakes. It's unclear whether "arg" applies to the flake itself, or to the flake + attr path. In addition, there's a few things that we could fix in the new command line that have existed previously in nix-build:
Nix doesn't error when the arg doesn't actually exist.
Nested attribute names like --arg config.allowUnfree false don't work.
No completions for --arg names.
Version: nix-2.4pre20200622_334e26b
The text was updated successfully, but these errors were encountered:
Describe the bug
When you try to build something unfree, you get a message like this:
Previously, you could pass an arg like this:
But now I get:
I think we may need to rethink how args work w.r.t. flakes. It's unclear whether "arg" applies to the flake itself, or to the flake + attr path. In addition, there's a few things that we could fix in the new command line that have existed previously in
nix-build
:--arg config.allowUnfree false
don't work.Version: nix-2.4pre20200622_334e26b
The text was updated successfully, but these errors were encountered: