On 27 August 2013 08:08, Vladimír Čunát <vcu...@gmail.com> wrote: > On 08/27/2013 05:02 PM, James Cook wrote: >> >> On 27 August 2013 05:55, Vladimír Čunát <vcu...@gmail.com> wrote: >>> >>> Ah, thanks. So it's the postPatch phase, but I don't see what's the >>> problem, >>> nor why it should be different than on Linux platforms. >> >> >> I have seen this before on FreeBSD. The issue was that BSD sed >> expects a suffix after -i, but Linux sed is happy with -i on its own. >> Probably Darwin's stdenv uses the Darwin's sed. > > > I believe the failing command is > sed "/^$pat/d" -i MANIFEST > > What do you mean by suffix?
In BSD sed, use -i .bak MANIFEST, and then the original file will be saved as MANIFEST.bak. With GNU sed the backup file is optional. The two obvious solutions are: - Make sure everything uses GNU sed on Darwin and FreeBSD. - Make sure every use of sed -i has a backup file suffix after the -i. _______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev