Hoi Roelof,

My guess is you didn’t read the error message. :-D

Do you know about the nix-env -K option ( —keep-failed).  It keeps the failed 
build in a folder in /tmp.
There you can see that extracting cjs-2.0.0.tar.gz creates another directory 
where all the source files are.

But your patch: 
https://github.com/roelof1967/nixpkgs/blob/master/pkgs/desktops/cinnamon/fix_configure_ac_gobject.patch#L12
  says the file is located in a Folder called “a/“ (or “b/“)

So to fix this you can change “a/"  and   “b/"   to   "cjs-2.0.0/"

Good luck x-)


PS: It’s actually very annoying Nix doesnt cd to the extracted source directory 
in the patchPhase as patch files become tied to a specific package version, but 
I guess there’s a good reason for this behaviour ...



On 30 nov. 2013, at 17:20, Roelof Wobben <[email protected]> wrote:

> Hello, 
> 
> Here is my repo : https://github.com/roelof1967/nixpkgs
> 
> When I try to patch cjs.nix which is in pkgs/desktops/cinnamon  the patch 
> fails 
> 
> But when I patch the file on the real file it is not a problem.
> 
> Can anyone explain what is the difference here ?
> So why do the patch fail on the cjs derivation.
> 
> Roelof
> 
> _______________________________________________
> nix-dev mailing list
> [email protected]
> http://lists.science.uu.nl/mailman/listinfo/nix-dev

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to