all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mekeor Melire <mekeor.melire@gmail.com>
To: help-guix <help-guix@gnu.org>
Subject: Specify patches for packages with local source
Date: Thu, 29 Jun 2017 23:00:18 +0200	[thread overview]
Message-ID: <87d19mik65.fsf@gmail.com> (raw)

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 …)))))

             reply	other threads:[~2017-06-29 21:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-29 21:00 Mekeor Melire [this message]
2017-07-02 19:10 ` Specify patches for packages with local source Efraim Flashner
2017-07-03  7:41 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d19mik65.fsf@gmail.com \
    --to=mekeor.melire@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.