GNU bug report logs - #32759
[PATCH 0/8] Seamless integration of inferior packages

Previous Next

Package: guix-patches;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Tue, 18 Sep 2018 12:05:02 UTC

Severity: normal

Tags: patch

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: tracker <at> debbugs.gnu.org
Subject: bug#32759: closed ([PATCH 0/8] Seamless integration of inferior
 packages)
Date: Fri, 21 Sep 2018 15:06:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 21 Sep 2018 17:05:36 +0200
with message-id <87d0t628n3.fsf <at> gnu.org>
and subject line Re: [bug#32759] [PATCH 0/8] Seamless integration of inferior packages
has caused the debbugs.gnu.org bug report #32759,
regarding [PATCH 0/8] Seamless integration of inferior packages
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
32759: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32759
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: guix-patches <at> gnu.org
Cc: Ludovic Courtès <ludo <at> gnu.org>
Subject: [PATCH 0/8] Seamless integration of inferior packages
Date: Tue, 18 Sep 2018 14:04:08 +0200
Hello Guix!

Here comes icing for the cake: a facility that allows you to mix inferior
packages with “regular” packages in a single profile.

For now you can use it, for instance, by writing a manifest for
‘guix package -m’ along these lines:

--8<---------------cut here---------------start------------->8---
(use-modules (guix inferior) (guix channels))

(define channels
  (list (channel
         (name 'guix)
         (url
          "https://git.savannah.gnu.org/git/guix.git")
         (commit
          #;"4ab6a2f23d43f6c7e4a5a7420db613c5ba5b03b6" ;recent
          "65956ad3526ba09e1f7a40722c96c6ef7c0936fe"))))

(define inferior
  (inferior-for-channels channels))

(packages->manifest
 (list (car (lookup-inferior-packages inferior "guile-json"))
       (specification->package "guile")))
--8<---------------cut here---------------end--------------->8---

The example above gives you guile-json 1.0.1 with guile 2.2.4.

Inferior packages are “first class”, meaning that their search paths,
propagated inputs, etc. are honored, just like for regular packages.

Building Guix or even just computing its derivation takes some time
so the last patch, which implements ‘inferior-for-channels’, adds a
cache.  That way, if you frequently use a given inferior, it’s
immediately available.

There’s no documentation yet, mostly because I wanted to get it out
the door and wasn’t sure whether we should provide higher-level
interfaces.

Anyway, that’s it.  Feedback welcome!

Ludo’.

Ludovic Courtès (8):
  inferior: Add 'inferior-package-derivation'.
  inferior: Add 'lookup-inferior-packages'.
  inferior: Add 'inferior-package-inputs' & co.
  inferior: Add 'inferior-package-search-paths' & co.
  inferior: Add 'inferior-package->manifest-entry'.
  profiles: 'packages->manifest' now accepts inferior packages.
  channels: Add 'channel-instances->derivation'.
  inferior: Add 'inferior-for-channels'.

 guix/channels.scm     |  16 +-
 guix/inferior.scm     | 366 ++++++++++++++++++++++++++++++++++++++++--
 guix/profiles.scm     |  27 +++-
 tests/guix-package.sh |  15 ++
 tests/inferior.scm    | 123 +++++++++++++-
 5 files changed, 523 insertions(+), 24 deletions(-)

-- 
2.18.0



[Message part 3 (message/rfc822, inline)]
From: ludo <at> gnu.org (Ludovic Courtès)
To: 32759-done <at> debbugs.gnu.org
Subject: Re: [bug#32759] [PATCH 0/8] Seamless integration of inferior packages
Date: Fri, 21 Sep 2018 17:05:36 +0200
Ludovic Courtès <ludo <at> gnu.org> skribis:

> Ludovic Courtès (8):
>   inferior: Add 'inferior-package-derivation'.
>   inferior: Add 'lookup-inferior-packages'.
>   inferior: Add 'inferior-package-inputs' & co.
>   inferior: Add 'inferior-package-search-paths' & co.
>   inferior: Add 'inferior-package->manifest-entry'.
>   profiles: 'packages->manifest' now accepts inferior packages.
>   channels: Add 'channel-instances->derivation'.
>   inferior: Add 'inferior-for-channels'.

Pushed along with some documentation!

Ludo’.


This bug report was last modified 6 years and 295 days ago.

Previous Next


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