[Nix-dev] force nix-build without binary caches?

Rob Vermaas rob.vermaas at gmail.com
Mon Dec 1 11:29:00 CET 2014


Or use (taken from 'man nix.conf'):

       build-use-substitutes
           If set to true (default), Nix will use binary substitutes if
available. This option can be disabled to force
           building from source.

E.g. nix-build --option build-use-substitutes false

Cheers,
Rob


On Mon, Dec 1, 2014 at 11:21 AM, Domen Kožar <domen at dev.si> wrote:

> nix-build --option binary-caches ""
>
> On Mon, Dec 1, 2014 at 11:08 AM, Daniel Hlynskyi <abcz2.uprola at gmail.com>
> wrote:
>
>> hi, I'm trying to use -K option for nix-build, but it doesn't generate
>> unpacked directory in /tmp, it simply finds it somewhere in cache (or
>> binary cache.nixos.org or hydra.nixos.org). How to force it to build
>> without using cache and generated /tmp/nix-build-* directory?
>>
>> [danbst at master:/tmp/scibuild]$ nix-build '<nixpkgs>' -K -A qscintilla
>> /nix/store/kycs9akg1h70wjm0p4cg9cc384ccrfy7-qscintilla-2.8.3
>> [danbst at master:/tmp/scibuild]$
>>
>> _______________________________________________
>> 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
>
>


-- 
Rob Vermaas

[email] rob.vermaas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20141201/8e3df39c/attachment.html 


More information about the nix-dev mailing list