From: Josh Marshall <joshua.r.marshall.1991@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Development of GNU Guix and the GNU System distribution
<guix-devel@gnu.org>
Subject: Re: [RFC] [Feature] In project `configuration.scm` allow dependencies to other repos with `configuration.scm`
Date: Wed, 20 Nov 2024 18:59:02 -0500 [thread overview]
Message-ID: <CAFkJGReg3qtcKMrbhCSkSS5E7g+RuqTBO79EbQ8DrcEnKaYK6w@mail.gmail.com> (raw)
In-Reply-To: <871pz5wpe6.fsf@gnu.org>
Hello Ludo,
I hadn't found that post, but what I'm trying to get across holds.
Barring distribution of binaries since I don't think that is critical
for improving and incremental adoption of Guix to support
infrastructure. A `manifest.scm` could look like the following,
keeping a close eye on the line containing "(remote-repo-dep URI
GIT-REF)".
```
(use-modules (guix)
(guix build-system gnu)
((guix licenses) #:prefix license:)
(gnu packages autotools)
(gnu packages ...)
(gnu remote-repo-dep-mod)
(gnu packages ...)
(gnu packages version-control))
(package
(name "your-project-name")
(version "???")
(source #t)
(build-system ???)
(native-inputs
(append (list autoconf
...
(remote-repo-dep URI GIT-REF)
...
pkg-config)
(inputs
(list libffi bash-minimal))
(propagated-inputs
(list libunistring libgc))
(native-search-paths
(list (search-path-specification
(variable "GUILE_LOAD_PATH")
(files '("share/guile/site/3.0")))
(search-path-specification
(variable "GUILE_LOAD_COMPILED_PATH")
(files '("lib/guile/3.0/site-ccache")))))
(synopsis "...")
(description "...")
(home-page "...")
(license license:lgpl3+))
```
Now, having that single line as a way to include code as opposed to
what can be accomplished similarly with similar expressiveness for the
purpose of the target user group of researchers (think mechanical
engineers, biologists, electrical labs, chemists) and general
developers would lower the barrier of entry to use Guix and improve
the quality of their projects to the point where it just wouldn't make
sense not to. Now, since there is such a well developed and
documented workflow for a similar process, would I be wrong in
assuming that such functionality could be relatively easy to
implement?
Let me know if gmail is messing up formatting. I think something is off.
On Wed, Nov 20, 2024 at 4:45 PM Ludovic Courtès <ludo@gnu.org> wrote:
>
> Josh Marshall <joshua.r.marshall.1991@gmail.com> skribis:
>
> > This is a technical workaround, not direct support. If such a feature
> > is to be aimed at general developers and researchers, it can't be so
> > circuitous. The Invocation from any form of Guix installation needs to
> > be `guix shell` and just work.
>
> To make sure we’re talking about the same thing, Efraim is referring to
> the conventions documented at:
>
> https://guix.gnu.org/cookbook/en/html_node/Software-Development.html
>
> Ludo’.
prev parent reply other threads:[~2024-11-21 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-18 18:25 [RFC] [Feature] In project `configuration.scm` allow dependencies to other repos with `configuration.scm` Josh Marshall
2024-11-19 10:28 ` Efraim Flashner
2024-11-19 16:41 ` Josh Marshall
2024-11-20 21:45 ` Ludovic Courtès
2024-11-20 23:59 ` Josh Marshall [this message]
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=CAFkJGReg3qtcKMrbhCSkSS5E7g+RuqTBO79EbQ8DrcEnKaYK6w@mail.gmail.com \
--to=joshua.r.marshall.1991@gmail.com \
--cc=guix-devel@gnu.org \
--cc=ludo@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).