* Difficulty starting with Cuirass
@ 2017-08-04 18:55 Leo Famulari
0 siblings, 0 replies; only message in thread
From: Leo Famulari @ 2017-08-04 18:55 UTC (permalink / raw)
To: guix-devel; +Cc: Mathieu Othacehe
[-- Attachment #1: Type: text/plain, Size: 2239 bytes --]
Hi,
I'm trying to set up Cuirass to build some manifests on a foreign
distro. I decided to start by adapting Mathieu O's examples from March
2017:
https://lists.gnu.org/archive/html/guix-devel/2017-03/msg00222.html
However, when I try to use it with the files copied below, it fails:
------
$ cuirass --one-shot --specifications=/home/leo/tmp/test/specification.scm --database=/tmp/test.db --cache-directory=/tmp/cuirass-cache
fatal: repository '#f' does not exist
------
I've got a specification file:
------
(define base
`((#:name . "my-spec")
(#:url . "git://git.savannah.gnu.org/guix.git")
(#:branch . "master")
(#:no-compile? . #t)
(#:load-path . ".")
(#:file . "./guix-drv.scm")
(#:proc . drv-list)))
(list '(base))
------
... the procedures to turn my manifest into a list of derivations,
guix-drv.scm:
------
(use-modules (guix config)
(guix store)
(guix grafts)
(guix packages)
(guix ui)
(guix derivations)
(guix monads)
(guix profiles)
(gnu packages)
(srfi srfi-1))
(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)))))))
(define (drv-list store arguments)
(let* ((manifest
(load* "leo.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)))))
------
... and the manifest, leo.scm:
------
(packages->manifest
(map (compose list specification->package+output)
'("coreutils" "nss-certs" "unzip" "bzip2" "which" "tar" "gawk" "vim" "bash")))
------
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-04 18:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-04 18:55 Difficulty starting with Cuirass Leo Famulari
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.