GNU bug report logs - #25093
Configure file for system-wide substitutes

Previous Next

Package: guix;

Reported by: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Date: Fri, 2 Dec 2016 17:27:01 UTC

Severity: normal

Tags: notabug

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25093 in the body.
You can then email your comments to 25093 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#25093; Package guix. (Fri, 02 Dec 2016 17:27:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hartmut Goebel <h.goebel <at> crazy-compilers.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 02 Dec 2016 17:27:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
To: bug-guix <at> gnu.org
Subject: Configure file for system-wide substitutes
Date: Fri, 2 Dec 2016 18:25:44 +0100
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 <at> crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |





Information forwarded to bug-guix <at> gnu.org:
bug#25093; Package guix. (Fri, 02 Dec 2016 17:31:01 GMT) Full text and rfc822 format available.

Message #8 received at 25093 <at> debbugs.gnu.org (full text, mbox):

From: "Thompson, David" <dthompson2 <at> worcester.edu>
To: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
Cc: 25093 <at> debbugs.gnu.org
Subject: Re: bug#25093: Configure file for system-wide substitutes
Date: Fri, 2 Dec 2016 12:30:32 -0500
On Fri, Dec 2, 2016 at 12:25 PM, Hartmut Goebel
<h.goebel <at> 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.

- Dave




Information forwarded to bug-guix <at> gnu.org:
bug#25093; Package guix. (Sat, 03 Dec 2016 10:34:02 GMT) Full text and rfc822 format available.

Message #11 received at 25093 <at> debbugs.gnu.org (full text, mbox):

From: Chris Marusich <cmmarusich <at> gmail.com>
To: "Thompson\, David" <dthompson2 <at> worcester.edu>
Cc: Hartmut Goebel <h.goebel <at> crazy-compilers.com>, 25093 <at> debbugs.gnu.org
Subject: Re: bug#25093: Configure file for system-wide substitutes
Date: Sat, 03 Dec 2016 02:33:43 -0800
[Message part 1 (text/plain, inline)]
"Thompson, David" <dthompson2 <at> worcester.edu> writes:

> On Fri, Dec 2, 2016 at 12:25 PM, Hartmut Goebel
> <h.goebel <at> 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):

--8<---------------cut here---------------start------------->8---
(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"))))))
--8<---------------cut here---------------end--------------->8---

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

--8<---------------cut here---------------start------------->8---
(operating-system
 (services (cons* (tor-service)
                  (gnome-desktop-service)
                  (xfce-desktop-service)
                  %modified-desktop-services))
--8<---------------cut here---------------end--------------->8---

-- 
Chris
[signature.asc (application/pgp-signature, inline)]

Added tag(s) notabug. Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Mon, 23 Jan 2017 22:12:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 25093 <at> debbugs.gnu.org and Hartmut Goebel <h.goebel <at> crazy-compilers.com> Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Mon, 23 Jan 2017 22:12:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 21 Feb 2017 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 113 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.