[Nix-dev] Unfree packages in Nixpkgs

Ricardo M. Correia rcorreia at wizy.org
Sun Apr 13 16:58:15 CEST 2014


Hi Marc,

I've added it to my configuration.nix but it doesn't seem to work:

# nix-repl '<nixpkgs>'
Welcome to Nix version 1.6.1. Type :? for help.

Loading '<nixpkgs>'...
Added 3740 variables.

nix-repl> pkgs.flashplayer.name
error: user-thrown exception: package 'flashplayer-11.2.202.350' in
<<unknown-file>> has an unfree license, refusing to evaluate


I would guess that would be because nix-repl doesn't even parse
configuration.nix?


On Sun, Apr 13, 2014 at 4:23 PM, Marc Weber <marco-oweber at gmx.de> wrote:

> > How do I pass "allowUnfree = true" to nix-repl, so that it lets me
> evaluate
> > unfree expressions?
> system:
>
>   configuration.nix:
>   nixpkgs.config.allowUnfree = true;
>
> user:
>
>   ~/.nixpkgs/config.nix:
>   { pkgs, ... } : {
>     allowUnfree = true;
>   }
>
> Marc Weber
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140413/2106f8f0/attachment-0001.html 


More information about the nix-dev mailing list