nix-freeze-tree-0.1.0.1: Convert a tree of files into fixed-output derivations
Safe HaskellNone
LanguageHaskell2010

NixBuilder

Synopsis

Documentation

data BuilderDirs Source #

Constructors

BuilderDirs 

Fields

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.