From: Chris Marusich <cmmarusich@gmail.com>
To: Mathieu Othacehe <m.othacehe@gmail.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Using cuirass to build your own manifest.
Date: Fri, 10 Mar 2017 00:55:54 -0800 [thread overview]
Message-ID: <8760jhfr39.fsf@gmail.com> (raw)
In-Reply-To: <87r328w58p.fsf@gmail.com> (Mathieu Othacehe's message of "Wed, 08 Mar 2017 09:19:02 +0100")
[-- Attachment #1: Type: text/plain, Size: 1696 bytes --]
Hi Mathieu!
Cool stuff! It's very interesting to see how others do things. I have
a basic Scheme question about what you did, though.
Mathieu Othacehe <m.othacehe@gmail.com> writes:
> (define (drv-package store package)
> (lambda ()
> `((#:job-name . ,(string-append
> (package-name package)
> "-"
> (package-version package)
> "-job"))
> (#:derivation . ,(derivation-file-name
> (parameterize ((%graft? #f))
> (package-derivation store package #:graft? #f)))))))
It looks like drv-package is a procedure which returns a procedure. Is
that correct?
> (define (drv-list store arguments)
> (let* ((manifest
> (load* "/home/mathieu/conf/guix/manifest.scm"
> (make-user-module
> '((guix profiles) (gnu)))))
> (packages
> (map manifest-entry-item
> (manifest-entries manifest))))
> (parameterize ((%graft? #f))
> (map (lambda (package)
> (drv-package store package))
> (delete-duplicates! packages)))))
>
>
> The drv-list procedure loads the file manifest.scm which content is
> detailed below. The list produced by drv-list looks like :
>
> (((#:job-name . "acpi-1.7-job") (#:derivation
> . "/gnu/store/r9s5x0ksj02hsw4n3acdxab8ggjp4z7y-acpi-1.7.drv")) ...)
If drv-package is a procedure that returns a procedure, then it seems to
me like the the list produced by drv-list should look like a list of
procedures, but that isn't what you wrote. What am I misunderstanding?
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2017-03-10 8:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-08 8:19 Using cuirass to build your own manifest Mathieu Othacehe
2017-03-08 9:48 ` ng0
2017-03-08 14:18 ` Mathieu Othacehe
2017-03-09 12:37 ` Ludovic Courtès
2017-03-09 18:58 ` Mathieu Othacehe
2017-03-10 15:54 ` Ludovic Courtès
2017-03-10 8:55 ` Chris Marusich [this message]
2017-03-10 17:27 ` Mathieu Othacehe
2017-03-12 19:17 ` Mathieu Lirzin
2017-03-13 8:43 ` Mathieu Othacehe
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=8760jhfr39.fsf@gmail.com \
--to=cmmarusich@gmail.com \
--cc=guix-devel@gnu.org \
--cc=m.othacehe@gmail.com \
/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).