Re: [Nix-dev] fetchurl and unpacker produced multiple directories

2016-06-03 Thread Guillaume Maudoux (Layus)
Why not simply set unpackPhase tout tour nées ? Le 3 juin 2016 09:22:33 UTC+02:00, Tomas Hlavaty a écrit : >Rok Garbas writes: >> sourceRoot = "."; >> and then you can mv/cp in postUnpack phase > >ah, great, thank you! > >Tomas

Re: [Nix-dev] fetchurl and unpacker produced multiple directories

2016-06-03 Thread Tomas Hlavaty
Rok Garbas writes: > sourceRoot = "."; > and then you can mv/cp in postUnpack phase ah, great, thank you! Tomas ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] fetchurl and unpacker produced multiple directories

2016-06-03 Thread Rok Garbas
sourceRoot = "."; and then you can mv/cp in postUnpack phase On Fri, Jun 3, 2016 at 8:27 AM, Tomas Hlavaty 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 >

Re: [Nix-dev] fetchurl and unpacker produced multiple directories

2016-06-03 Thread Tomas Hlavaty
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

Re: [Nix-dev] fetchurl and unpacker produced multiple directories

2016-06-02 Thread Domen Kožar
If your source is in `src` directory: sourceRoot = "src"; On Thu, Jun 2, 2016 at 9:36 PM, Tomas Hlavaty wrote: > Hi, > > I am trying to write a nix package but fetchurl fails with > >unpacker produced multiple directories > > due to the upstream tarball not containing a