Configure file for system-wide substitutes

  • Done
  • quality assurance status badge
Details
4 participants
  • Chris Marusich
  • Thompson, David
  • Hartmut Goebel
  • Ludovic Courtès
Owner
unassigned
Submitted by
Hartmut Goebel
Severity
normal

Debbugs page

H
H
Hartmut Goebel wrote on 2 Dec 2016 09:25
(address . bug-guix@gnu.org)
5841AE98.4030004@crazy-compilers.com
Hi,

when publishing packages in the local network, one wants to use this
substitute without passing --substitute-urls on every relevant run on guix.

I suggest implementing a config-file for storing the substitute-urls,
much like the sources.list on Debian systems.

In the long run we'll need this for enterprise setup anyway :-)
Enterprises tend to fetch software from their internal repositories only .

--
Regards
Hartmut Goebel

| Hartmut Goebel | h.goebel@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
T
T
Thompson, David wrote on 2 Dec 2016 09:30
(name . Hartmut Goebel)(address . h.goebel@crazy-compilers.com)(address . 25093@debbugs.gnu.org)
CAJ=RwfbWpq=EbFLjtJ6-m4abH2Y-Eneawf01uF5Xm_POh20dxw@mail.gmail.com
On Fri, Dec 2, 2016 at 12:25 PM, Hartmut Goebel
<h.goebel@crazy-compilers.com> wrote:
Toggle quote (11 lines)
> Hi,
>
> when publishing packages in the local network, one wants to use this
> substitute without passing --substitute-urls on every relevant run on guix.
>
> I suggest implementing a config-file for storing the substitute-urls,
> much like the sources.list on Debian systems.
>
> In the long run we'll need this for enterprise setup anyway :-)
> Enterprises tend to fetch software from their internal repositories only .

Just run the daemon with the subsitute URLs you want using the
--substitute-urls flag.

- Dave
C
C
Chris Marusich wrote on 3 Dec 2016 02:33
(name . Thompson, David)(address . dthompson2@worcester.edu)
87lgvxjo8o.fsf@gmail.com
"Thompson, David" <dthompson2@worcester.edu> writes:

Toggle quote (16 lines)
> On Fri, Dec 2, 2016 at 12:25 PM, Hartmut Goebel
> <h.goebel@crazy-compilers.com> wrote:
>> Hi,
>>
>> when publishing packages in the local network, one wants to use this
>> substitute without passing --substitute-urls on every relevant run on guix.
>>
>> I suggest implementing a config-file for storing the substitute-urls,
>> much like the sources.list on Debian systems.
>>
>> In the long run we'll need this for enterprise setup anyway :-)
>> Enterprises tend to fetch software from their internal repositories only .
>
> Just run the daemon with the subsitute URLs you want using the
> --substitute-urls flag.

The way to do this may not be obvious unless you've done it before.
Here's an example of how I do this in my own operating system config
(for details, see '(guix) Service Reference' for the documentation of
the 'modify-services' syntax):

Toggle snippet (11 lines)
(define %modified-desktop-services
(modify-services %desktop-services
(guix-service-type config =>
(guix-configuration
(inherit config)
(substitute-urls
'("https://hydra-mirror.marusich.info"
"https://mirror.hydra.gnu.org"
"https://hydra.gnu.org"))))))

Then you just declare the services as usual, for example:

Toggle snippet (7 lines)
(operating-system
(services (cons* (tor-service)
(gnome-desktop-service)
(xfce-desktop-service)
%modified-desktop-services))

--
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJYQp+HAAoJEN1AmhXYIkadWiIQAJIs2ddQD6HTSGm7v8BghMwM
7edts/bBt4XfLnH36sWmcT1kJWJTn9SuTeTzqpAoMMsWtbRhPBev5Qjl6+CI25OG
0Mk8na1bTf/zPlaqxNVxUtWnUrs6PLETprh7QlU78waGaYVm5vutxXO0fHR6bQ+r
m5GD6NGO7F11+rNQZgzSGaci5wp7E2dQOEhtH6WGsxeXZxUWbEvExntlkTS4hxkk
zDC9rJgGHayQDrzZB3jpJ5DtJyZ4iKwvb05qDSwNXTz+Y8Vkal7MBibZnZaShWVi
AMxfU2Tx1MEbqhogB+D0z4qpW4da+ZdgA8NlS6xAzJ61eHqDhSfkqtamhiEvJXZP
LEQ4Fr9HsxTml1iwltCvu54Kmy6svTQUDwbPj7K5rKS3XSW3af1i0bVAT8p7s611
5ELWh3H/xiNr6cMKs02kjRskAQQbAAa3LGvPSjOvY39U+IYj8Gw76wXBgpHf/IDk
YWeva5JLOwK/ir5LwQhm1MZRGAIThMPCRT9TPvPduLuHcDjlyPtPZ9/TQdqFu0VX
0IZgOP2ZSBPeKkpaFXvK3ETB/7+LSijWpqXAdT84CFA6RhKh0OmohI3r05eX7sS3
RTAn6TtLKDcrmpVwfScXvnf66WUMem1eTN7LHrBSZO/vi6TDgNkCeNLL1/17hU1l
7ARcxrNxq62rL8xremKY
=DcOn
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 23 Jan 2017 14:11
control message for bug #25093
(address . control@debbugs.gnu.org)
877f5lmnot.fsf@gnu.org
tags 25093 notabug
close 25093
?
Your comment

This issue is archived.

To comment on this conversation send an email to 25093@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 25093
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch