unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* About "asdf-build-system/source" and dependent packages
@ 2020-03-03  8:32 NOEU
  2020-03-03 14:53 ` Pierre Neidhardt
  0 siblings, 1 reply; 6+ messages in thread
From: NOEU @ 2020-03-03  8:32 UTC (permalink / raw)
  To: help-guix

Hello

I am worried about the build-system of the GNU Guix package management 
system and the resolution of package dependencies. Please help if you like.

I wanted to use the GNU Guix package management system to create a 
private channel for Common Lisp ASDF packages.

I am working while checking "gnu/packages/lisp-xyz.scm".
In lisp-xyz.scm, define the package for SBCL, and then add the ECL build 
package and source package to Is defined as

;; for SBCL
(define-public sbcl-package-name
   ...
   (inputs
     `((" package-name-a ", sbcl-package-name-a)
        ("package-name-b", sbcl-package-name-b)))
   (build-system asdf-build-system / sbcl)
   ...)

;; for Source
(define-public cl-package-name
   (sbcl-package-> cl-source-package sbcl-package-name))

;; for ECL
(define-public ecl-package-name
   (sbcl-package-> ecl-package sbcl-package-name))


To make such a definition, "guix package -i cl-package-name" will 
install the dependent "package-name-a" and "package-name-b" at the same 
time. You can find it under $GUIX_PROFILE/share/common-lisp/source.

However, I simply wanted to define a package to install the source, and 
defined the package using "asdf-build-system/source" as follows:

(define-public cl-package-name
   ...
   (inputs
     `((" package-name-a ", cl-package-name-a)
        ("package-name-b", cl-package-name-b)))
   (build-system asdf-build-system / source)
   ...)

When this definition is made and "guix package -i cl-package-name" is 
executed, the dependent package specified in "inputs" will not be 
installed. (Dependent packages are also installed in 
asdf-build-system/source. It is executed after rewriting to the 
definition used)

Is there a way to automatically install dependent(inputs) packages when 
using "asdf-build-system/source"?

Best regards,
NOEU

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-04  8:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-03  8:32 About "asdf-build-system/source" and dependent packages NOEU
2020-03-03 14:53 ` Pierre Neidhardt
2020-03-03 15:17   ` Tobias Geerinckx-Rice
2020-03-03 15:23     ` Pierre Neidhardt
2020-03-03 15:59   ` NOEU
2020-03-04  8:16     ` Pierre Neidhardt

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).