b9-3.2.3: A tool and library for building virtual machine images.
Safe HaskellNone
LanguageHaskell2010

B9.Shake.SharedImageRules

Description

A crude, unsafe and preliminary solution to building B9 SharedImages from Shake.

Synopsis

Documentation

customSharedImageAction :: HasCallStack => SharedImageName -> Action () -> Rules () Source #

Specify an arbitrary action that is supposed to build the given shared image identified by a SharedImageName. NOTE: You must call enableSharedImageRules before this action works.

needSharedImage :: HasCallStack => SharedImageName -> Action SharedImageBuildId Source #

Add a dependency to the creation of a SharedImage. The build action for the shared image must have been supplied by e.g. customSharedImageAction. NOTE: You must call enableSharedImageRules before this action works.

enableSharedImageRules :: HasCallStack => B9ConfigOverride -> Rules () Source #

In order to use needSharedImage and customSharedImageAction you need to call this action before using any of the aforementioned Rules.