Re: [Nix-dev] fetchurl and unpacker produced multiple directories
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 >___ >nix-dev mailing list >nix-dev@lists.science.uu.nl >http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ 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
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
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 > 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@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev -- Rok Garbas http://www.garbas.si r...@garbas.si ___ 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
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@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] fetchurl and unpacker produced multiple directories
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 top level directory. > > What is the usual way of dealing with such issue? > > Thanks, > > Tomas > ___ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] fetchurl and unpacker produced multiple directories
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 top level directory. What is the usual way of dealing with such issue? Thanks, Tomas ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev