[Nix-dev] Problem with builder #1 - nix-shell and nix-build behave differently

Daniel Hlynskyi abcz2.uprola at gmail.com
Sun May 17 01:00:47 CEST 2015


I propose

postUnpack = "cd $sourceRoot"

That won't break already-unpacked-source-environments
If one wants old behaviour, he can do "unpackPhase; cd .."

2015-05-16 19:39 GMT+00:00 Luca Bruno <lethalman88 at gmail.com>:

> Because you are only looking at your use case. Many use cases involve
> having already an src and using nix-shell for getting in the dev
> environment.
>
> On Sat, May 16, 2015 at 6:56 PM, Daniel Hlynskyi <abcz2.uprola at gmail.com>
> wrote:
>
>> Why not? unpackPhase unpacks to current dir, why can't it switch to
>> $sourceRoot?
>> If I understand nix-shell right, it would be then possible to
>>
>> nix-shell --command "unpackPhase; configurePhase; buildPhase;"
>>
>> as kind of alias to nix-build. Currently you are required to cd as
>> mentioned in wiki [https://nixos.org/wiki/Debugging_a_Nix_Package]
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150516/a1648b6a/attachment.html 


More information about the nix-dev mailing list