Unfree software: Difference between revisions
imported>Samueldr mNo edit summary |
imported>Das-g Mention possibility to whitelist unfree packages or licenses and link to further information in the Nixpkgs manual |
||
Line 24: | Line 24: | ||
<syntaxhighlight lang="bash">NIXPKGS_ALLOW_UNFREE=1 nix-env</syntaxhighlight> | <syntaxhighlight lang="bash">NIXPKGS_ALLOW_UNFREE=1 nix-env</syntaxhighlight> | ||
For whitelisting '''only specific''' unfree packages or unfree licenses | |||
see the [https://nixos.org/nixpkgs/manual/#sec-allow-unfree "Installing unfree packages" section] | |||
of the Nixpkgs manual. | |||
Note that we are not able to test or build unfree software on Hydra | Note that we are not able to test or build unfree software on Hydra |
Revision as of 09:50, 26 May 2018
{{#tweekihide:firstHeading}}
How can I install a proprietary or unfree package?
You won't be able to install or search for an unfree package as a user, unless you explicitly enable it in ~/.config/nixpkgs/config.nix (the file and folder may need to be created):
{
# [...]
allowUnfree = true;
}
When using NixOS, it is possible to enable unfree packages system-wide, then set in your /etc/nixos/configuration.nix
:
{
# [...]
nixpkgs.config.allowUnfree = true;
}
Note that this alone will not allow you to search for or install packages with nix-env.
For temporary allowing unfree packages you can set the environment variable NIXPKGS_ALLOW_UNFREE, e.g.
NIXPKGS_ALLOW_UNFREE=1 nix-env
For whitelisting only specific unfree packages or unfree licenses see the "Installing unfree packages" section of the Nixpkgs manual.
Note that we are not able to test or build unfree software on Hydra due to policy. Most unfree licenses prohibit us from either executing or distributing the software.