[Nix-dev] Unfree packages in Nixpkgs
Aristid Breitkreuz
aristidb at gmail.com
Sun Apr 13 17:00:00 CEST 2014
If you put it in your ~/.nixpkgs/config.nix instead, it should be
picked up by nix-repl.
2014-04-13 16:58 GMT+02:00 Ricardo M. Correia <rcorreia at wizy.org>:
> 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
>
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
More information about the nix-dev
mailing list