From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mekeor Melire Subject: Specify patches for packages with local source Date: Thu, 29 Jun 2017 23:00:18 +0200 Message-ID: <87d19mik65.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQgY2-0004Jj-If for help-guix@gnu.org; Thu, 29 Jun 2017 17:00:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQgY1-0005xw-SI for help-guix@gnu.org; Thu, 29 Jun 2017 17:00:22 -0400 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:37411) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQgY1-0005xJ-MD for help-guix@gnu.org; Thu, 29 Jun 2017 17:00:21 -0400 Received: by mail-wm0-x232.google.com with SMTP id i127so27231904wma.0 for ; Thu, 29 Jun 2017 14:00:21 -0700 (PDT) Received: from melibre. ([2001:a61:223e:7a01:dcb9:c4da:c4f1:7452]) by smtp.gmail.com with ESMTPSA id j125sm2977180wmf.6.2017.06.29.14.00.19 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Jun 2017 14:00:19 -0700 (PDT) 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: help-guix Is it possible to specify patches for packages with local source? 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? The manual states: URL-FETCH from ‘(guix download)’ download a file from the HTTP, HTTPS, or FTP URL specified in the ‘uri’ field; But is "file://" also supported? Can I write something as follows? (define-public own-st (package (inherit st) (source (origin (method url-fetch) (uri "/path/to/st") ; like this ← ? ;(uri "file:///path/to/st") ; or like this ← ? (patches …)))))