* 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, other threads:[~2020-06-19 22:57 UTC | newest]
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
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.