Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Guix Cuirass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Panda
Guix Cuirass
Commits
88f3cf65
Unverified
Commit
88f3cf65
authored
4 years ago
by
Mathieu Othacehe
Browse files
Options
Downloads
Patches
Plain Diff
Fix evaluation.
* bin/evaluate.in: Fix it.
parent
5f830da3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/evaluate.in
+14
-22
14 additions, 22 deletions
bin/evaluate.in
with
14 additions
and
22 deletions
bin/evaluate.in
+
14
−
22
View file @
88f3cf65
...
...
@@ -28,9 +28,12 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@"
(
use-modules
(
cuirass
database
)
(
cuirass
specification
)
(
guix
channels
)
(
guix
derivations
)
(
guix
inferior
)
(
guix
licenses
)
(
guix
monads
)
(
guix
store
)
(
guix
ui
)
(
guix
utils
)
(
srfi
srfi-1
)
(
ice-9
match
)
...
...
@@ -79,27 +82,17 @@ Pass the BUILD, CHANNELS and SYSTEMS arguments to the EVAL-PROC procedure."
(
,eval-proc
store
',args
)))))
(
db-register-builds
jobs
eval-id
spec
))))
(
define
(
channels->cached-profile
channels
checkouts
)
"Return a directory containing a guix filetree defined by CHANNELS, a list
of channels. Pin the given channels to the commits specified in CHECKOUTS."
(
define
(
checkout->commit
name
)
(
any
(
lambda
(
checkout
)
(
and
(
eq?
(
assq-ref
checkout
#
:channel
)
name
)
(
assq-ref
checkout
#
:commit
)))
checkouts
))
(
define
(
channel-instances->profile
instances
)
"Return a directory containing a guix filetree defined by INSTANCES, a list
of channel instances."
(
with-store
store
(
set-build-options
store
#
:use-substitutes?
#f
#
:substitute-urls
'
())
(
let
((
channels*
(
map
(
lambda
(
c
)
(
let
((
name
(
channel-name
c
)))
(
channel
(
inherit
c
)
(
commit
(
checkout->commit
name
)))))
channels
)))
(
cached-channel-instance
store
channels*
))))
(
run-with-store
store
(
mlet*
%store-monad
((
profile
(
channel-instances->derivation
instances
)))
(
mbegin
%store-monad
(
show-what-to-build*
(
list
profile
))
(
built-derivations
(
list
profile
))
(
return
(
derivation->output-path
profile
)))))))
(
define*
(
main
#
:optional
(
args
(
command-line
)))
"This procedure spawns an inferior on the given channels. An evaluation
...
...
@@ -114,8 +107,7 @@ registered in database."
(
spec
(
db-get-specification
name
))
(
checkouts
(
db-get-checkouts
eval-id
))
(
instances
(
checkouts->channel-instances
checkouts
))
(
channels
(
specification-channels
spec
))
(
profile
(
channels->cached-profile
channels
checkouts
))
(
profile
(
channel-instances->profile
instances
))
(
build
(
specification-build
spec
))
(
systems
(
specification-systems
spec
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment