all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Specify patches for packages with local source
@ 2017-06-29 21:00 Mekeor Melire
  2017-07-02 19:10 ` Efraim Flashner
  2017-07-03  7:41 ` Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Mekeor Melire @ 2017-06-29 21:00 UTC (permalink / raw)
  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 …)))))

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-03  7:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-29 21:00 Specify patches for packages with local source Mekeor Melire
2017-07-02 19:10 ` Efraim Flashner
2017-07-03  7:41 ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.