unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: pkill9 <pkill9@runbox.com>
To: guix-devel@gnu.org
Subject: Change the '--with-source' flag to use the syntax `--with-source=PACKAGE=SOURCE`
Date: Wed, 17 Jun 2020 14:17:16 +0100	[thread overview]
Message-ID: <20200617141716.1fb9f553@runbox.com> (raw)

I propose changing the `--with-source` flag to use the syntax of
similar `--with-...` flags such as `--with-commit`, e.g.
`--with-source=PACKAGE=SOURCE`, because currently you need to
change a file to match the form "package-version.extension`, and it
searches the package graph to find the package to replace the input
with. It's annoying having to download a source file and change it's
filename just to have it work with this flag.

It would also be more consistent to match the syntax of the other
flags. To illustrate, this is the section of `guix build --help` that
shows the syntax of all these `--with-...` flags:

```
      --with-source=SOURCE
                         use SOURCE when building the corresponding package
      --with-input=PACKAGE=REPLACEMENT
                         replace dependency PACKAGE by REPLACEMENT
      --with-graft=PACKAGE=REPLACEMENT
                         graft REPLACEMENT on packages that refer to PACKAGE
      --with-branch=PACKAGE=BRANCH
                         build PACKAGE from the latest commit of BRANCH
      --with-commit=PACKAGE=COMMIT
                         build PACKAGE from COMMIT
      --with-git-url=PACKAGE=URL
                         build PACKAGE from the repository at URL
```


             reply	other threads:[~2020-06-17 13:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-17 13:17 pkill9 [this message]
2020-06-19 21:21 ` Change the '--with-source' flag to use the syntax `--with-source=PACKAGE=SOURCE` Ludovic Courtès
2020-06-19 22:56   ` pkill9

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=20200617141716.1fb9f553@runbox.com \
    --to=pkill9@runbox.com \
    --cc=guix-devel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).