[Nix-dev] patch problem
deCube.net | Danny Wilson
danny at decube.net
Sat Nov 30 19:14:35 CET 2013
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 <rwobben at hotmail.com> 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
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20131130/b4250d4e/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20131130/b4250d4e/attachment.bin
More information about the nix-dev
mailing list