bdf18a00b8
This change setups external dhall packages needed by the operator. The packages are also cached in the operator image to speed up runtime. Change-Id: Ib6c5774870324224e86b7966f0c720783635df10
29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
{- This file provides a central `Prelude` import for the rest of the library to
|
|
use so that the integrity check only needs to be updated in one place
|
|
whenever upgrading the interpreter.
|
|
|
|
This allows the user to provide their own Prelude import using the
|
|
`DHALL_PRELUDE` environment variable, like this:
|
|
|
|
```
|
|
$ export DHALL_PRELUDE='https://prelude.dhall-lang.org/package.dhall sha256:...'
|
|
```
|
|
|
|
Note that overriding the Prelude in this way only works if this repository
|
|
is imported locally. Remote imports do not have access to environment
|
|
variables and any attempt to import one will fall back to the next available
|
|
import. To learn more, read:
|
|
|
|
* https://docs.dhall-lang.org/discussions/Safety-guarantees.html#cross-site-scripting-xss
|
|
|
|
This file also provides an import without the integrity check as a slower
|
|
fallback if the user is using a different version of the Dhall interpreter.
|
|
|
|
This pattern is documented in the dhall-nethack repo:
|
|
|
|
* https://github.com/dhall-lang/dhall-nethack/blob/master/Prelude.dhall
|
|
-}
|
|
env:DHALL_PRELUDE
|
|
? https://prelude.dhall-lang.org/v13.0.0/package.dhall sha256:4aa8581954f7734d09b7b21fddbf5d8df901a44b54b4ef26ea71db92de0b1a12
|
|
? https://prelude.dhall-lang.org/v13.0.0/package.dhall
|