[Nix-dev] fetchurl and unpacker produced multiple directories

Rok Garbas rok at garbas.si
Fri Jun 3 08:28:29 CEST 2016


sourceRoot = ".";

and then you can mv/cp in postUnpack phase

On Fri, Jun 3, 2016 at 8:27 AM, Tomas Hlavaty <tom at logand.com> wrote:
> Hi Domen,
>
>> If your source is in `src` directory:
>>
>> sourceRoot = "src";
>
> Yes, the source directory is in src but the top-level CMakeLists.txt is
> directly in the root dir of the tarball.  I was looking for some kind of
> way to tell fetchurl to unpack the tarball in a predefined subdirectory
> or something, in order to prevent this error message and make fetchurl
> happy.  Is there something I can do short of not using fetchurl?
>
> Thank you for your help!
>
> Tomas
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev



-- 
Rok Garbas
http://www.garbas.si
rok at garbas.si


More information about the nix-dev mailing list