* Change syntax of '--with-source' flag to match syntax of '--with-commit' flag?
@ 2019-02-07 7:36 pkill9
0 siblings, 0 replies; only message in thread
From: pkill9 @ 2019-02-07 7:36 UTC (permalink / raw)
To: guix-devel
The '--with-commit' flag changes the source used to build a package, the syntax takes the form of '--with-commit=<package>=<commit>'.
The '--with-source' flag also changes the source, but uses the syntax '--with-source=<url or file>', but only transforms the top-level package (e.g. `guix build <top-level package>` or `guix environment --ad-hoc `<top-level package>`). It also only works if the new source file has the form '<package name>-<package version>.<extension>', which means if a package source URL isn't named in that way, then you have to first download it, rename it to fit that template, then use --with-source with that file.
I propose changing the syntax of '--with-source=' to match the syntax of '--with-commit='. This would have the following benefits:
- No need to download and rename files that don't fit the '<package name>-<package version>.<extension>' format.
- Able to change the source file of a package input of any package in the package graph.
- Makes the syntax consistent with '--with-commit='.
What do other people think?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-02-07 7:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-07 7:36 Change syntax of '--with-source' flag to match syntax of '--with-commit' flag? 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.