diff options
author | Emery Hemingway <ehmry@posteo.net> | 2024-08-24T10·22+0300 |
---|---|---|
committer | Emery Hemingway <ehmry@posteo.net> | 2024-08-27T15·01+0300 |
commit | c5b315914f95871c85ed3d30caf9f07f98549cb1 (patch) | |
tree | 4a140b7d824bed612a920c250ec9100c99e3b958 /protocol.prs | |
parent | 9349f9bcf9998831315577ce8794f50a9359f62a (diff) |
Add eval assertion
Diffstat (limited to 'protocol.prs')
-rw-r--r-- | protocol.prs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/protocol.prs b/protocol.prs index 147611860dcb..2852ff103cc9 100644 --- a/protocol.prs +++ b/protocol.prs @@ -51,6 +51,12 @@ Context = #:any . # Assertion. The store that this asserted to will copy the closure of @storePath to @destination. When the copy completes or fails a Result value is asserted to @result. CopyClosure = <copy-closure @dest #:any @storePath string @result #:Result>. +# Assertion. +# Eval at a nix-repo. @expr must be a function that takes two parameters, +# the first is the nix-repo value, the second is @args. +# The result is asserted to @result +Eval = <eval @expr string @args any @result #:Result> . + AttrSet = {symbol: any ...:...} . # Value. |