unofficial mirror of guix-devel@gnu.org 
 help / color / Atom feed
* Change the '--with-source' flag to use the syntax `--with-source=PACKAGE=SOURCE`
@ 2020-06-17 13:17 pkill9
  2020-06-19 21:21 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: pkill9 @ 2020-06-17 13:17 UTC (permalink / raw)
  To: guix-devel

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
```


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

* Re: Change the '--with-source' flag to use the syntax `--with-source=PACKAGE=SOURCE`
  2020-06-17 13:17 Change the '--with-source' flag to use the syntax `--with-source=PACKAGE=SOURCE` pkill9
@ 2020-06-19 21:21 ` Ludovic Courtès
  2020-06-19 22:56   ` pkill9
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2020-06-19 21:21 UTC (permalink / raw)
  To: pkill9; +Cc: guix-devel

Hi,

pkill9 <pkill9@runbox.com> skribis:

> 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.

You can use ‘--with-source=PACKAGE=SOURCE’, too:

  https://guix.gnu.org/manual/en/html_node/Package-Transformation-Options.html

Ludo’.


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

* Re: Change the '--with-source' flag to use the syntax `--with-source=PACKAGE=SOURCE`
  2020-06-19 21:21 ` Ludovic Courtès
@ 2020-06-19 22:56   ` pkill9
  0 siblings, 0 replies; 3+ messages in thread
From: pkill9 @ 2020-06-19 22:56 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

> You can use ‘--with-source=PACKAGE=SOURCE’, too:
> 
>   https://guix.gnu.org/manual/en/html_node/Package-Transformation-Options.html

Ah great, thanks!


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

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-17 13:17 Change the '--with-source' flag to use the syntax `--with-source=PACKAGE=SOURCE` pkill9
2020-06-19 21:21 ` Ludovic Courtès
2020-06-19 22:56   ` pkill9

unofficial mirror of guix-devel@gnu.org 

Archives are clonable:
	git clone --mirror https://yhetil.org/guix-devel/0 guix-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-devel guix-devel/ https://yhetil.org/guix-devel \
		guix-devel@gnu.org
	public-inbox-index guix-devel

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.devel
	nntp://news.gmane.io/gmane.comp.gnu.guix.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git