From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: Specify patches for packages with local source Date: Sun, 2 Jul 2017 22:10:01 +0300 Message-ID: <20170702191001.GD2938@macbook42.flashner.co.il> References: <87d19mik65.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AsxXAMtlQ5JHofzM" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRkG0-0002oD-3G for help-guix@gnu.org; Sun, 02 Jul 2017 15:10:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRkFw-0001iM-SI for help-guix@gnu.org; Sun, 02 Jul 2017 15:10:08 -0400 Received: from flashner.co.il ([178.62.234.194]:48774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRkFw-0001i4-Kj for help-guix@gnu.org; Sun, 02 Jul 2017 15:10:04 -0400 Content-Disposition: inline In-Reply-To: <87d19mik65.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Mekeor Melire Cc: help-guix --AsxXAMtlQ5JHofzM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 29, 2017 at 11:00:18PM +0200, Mekeor Melire wrote: > Is it possible to specify patches for packages with local source? >=20 > The `local-file` declaration doesn't allow a `patches` declaration. > Therefore, I'm guessing I'd have to use `origin`. But I'm not sure > whether either (method git-fetch) or (method url-fetch) allow to specify > a local path? >=20 > The manual states: >=20 > URL-FETCH from =E2=80=98(guix download)=E2=80=99 > download a file from the HTTP, HTTPS, or FTP URL > specified in the =E2=80=98uri=E2=80=99 field; >=20 > But is "file://" also supported? Can I write something as follows? >=20 > (define-public own-st > (package > (inherit st) > (source > (origin > (method url-fetch) > (uri "/path/to/st") ; like this =E2=86=90 ? > ;(uri "file:///path/to/st") ; or like this =E2=86=90 ? > (patches =E2=80=A6))))) >=20 I used to have a package with a patch. From my main GUIX_PACKAGE_PATH I had the patch toplevel, although I suppose it shouldn't matter. To the package module I added and import of (gnu packages) and for the patches field I had the standard (patches (search-patches "my-patch.patch")) --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --AsxXAMtlQ5JHofzM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAllZRQkACgkQQarn3Mo9 g1E/Hg//YibfEs3vO7ZqGJEW2BdaLCEDuPNDxRsTShD+gZcdjGdlCWaIbzjcKmno o23Ih/x5tYO1HTZ3tob7PPZhvA9lYFs1L4cxLRZvpwFhJEWgtwpWcjqbe04zlYmi rOU+qaDmz9QtJjYj50VZ91eQcPx6txN2xWxecJmCyLixgnuoYtF00FPuO94JLW9/ g8i3HyXawDXp8XnD073oUdHCPwurpiTgHY0iPiqVdmlJtnKP5GG8dUo4ycbtFhzg o6RF3S3rab+WrKJC9J45L8YERMYwv9qZwuareAi3Ej8Ly1HnxGDKT2l52WYHIwz3 S0lpjPP+1cFGfW+YfcPLQvwedfCh0qfqpJlOCgZTx/fYyEyc2SCSrtrj13/nJc7v Zh4lIjvqBT8rmsJAQxhXeSn7/Y3XyDR9WXoz8st/9MljcC4tyTn2v2auOFLORRkC 5bkVHuEV0sH3j2PNk7Ry01lN3VPmW+zwNVy3qkZD84ye/uRqL2hzOtjqShP2MM2k kYhw7GsrLy7euKiNMblpu1GWTRy2J4XKUd5uRYajy7P3t+VpH3TTM6C5yakNYwgz yevdRW6Dmm43MVaIfI2B8NLqL5ZM7WVnIGe1hHaW4P5YeUiI+z8PXf8WZBsYgUeE bnrn9n0QEdW4Cf9/L6eBtL9MZJGbgT1Uwu5DGrEmbSoQ5TBqxsY= =l7FV -----END PGP SIGNATURE----- --AsxXAMtlQ5JHofzM--