nixos-types-1.2: Data types representing the Nix language

PortabilityPatternGuards
Stabilityprovisional
Maintainernix-dev@cs.uu.nl

Distribution.NixOS.Derivation.Cabal

Description

A represtation of Nix expressions based on Cabal builder defined in pkgs/development/libraries/haskell/cabal/cabal.nix.

Synopsis

Documentation

data Derivation Source

A represtation of Nix expressions for building Haskell packages. The data type correspond closely to the definition of PackageDescription from Cabal.

Note that the Text instance definition provides pretty-printing, but no parsing as of now!

parseDerivation :: String -> Maybe DerivationSource

A very incomplete parser that extracts pname, version, sha256, platforms, maintainers, and runHaddock from the given Nix expression.