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

Daniel Hlynskyi abcz2.uprola at gmail.com
Mon Dec 1 11:47:51 CET 2014


thanks, now it works. Am I right, if I have Qt-4.8.6 (build dependency of
qscintilla) already installed, than I don't need to
recompile it when --option binary-caches "" is used for qscintilla?

2014-12-01 11:34 GMT+01:00 Domen Kožar <domen at dev.si>:

> $ rm result
> $ nix-store --delete /nix/store/kycs9akg1h70wjm0p4cg9cc384ccrf
> y7-qscintilla-2.8.3
> $ nix-build '<nixpkgs>' -K -A qscintilla --option build-use-substitutes
> false
>
> On Mon, Dec 1, 2014 at 11:32 AM, Daniel Hlynskyi <abcz2.uprola at gmail.com>
> wrote:
>
>> Thanks guys, but that doesn't help
>>
>> [danbst at master:/tmp/scibuild]$ nix-build '<nixpkgs>' -K -A qscintilla
>> --option build-use-substitutes false
>> /nix/store/kycs9akg1h70wjm0p4cg9cc384ccrfy7-qscintilla-2.8.3
>>
>> [danbst at master:/tmp/scibuild]$ nix-build '<nixpkgs>' -K -A qscintilla
>> --option binary-caches ""
>> /nix/store/kycs9akg1h70wjm0p4cg9cc384ccrfy7-qscintilla-2.8.3
>>
>> [danbst at master:/tmp/scibuild]$
>>
>> I have 'gc-keep-outputs = true' option enabled. Can this be a problem?
>>
>> 2014-12-01 11:29 GMT+01:00 Rob Vermaas <rob.vermaas at gmail.com>:
>>
>>> 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/2de7ef6e/attachment-0001.html 


More information about the nix-dev mailing list