Safe Haskell | None |
---|---|
Language | Haskell2010 |
NixBuilder
Documentation
data BuilderDirs Source #
mkBuildExpr :: [Path Rel File] -> [Path Rel Dir] -> ReaderT BuilderDirs IO NExpr Source #
Given a list of directory contents, construct a Nix expression that builds a derivation, where:
- Every file is a symlink to a separate fixed-output derivation, and
- Every directory is a symlink to a derivation built with
mkBuildExpr
The ReaderT context is the path to the directory, split into an absolute root and a subdirectory relative to the root.