Portability | portable |
---|---|
Stability | provisional |
Maintainer | nix-dev@cs.uu.nl |
A representation of the meta
section used in Nix expressions. A
detailed description can be found in section 4, "Meta-attributes",
of the Nixpkgs manual at http://nixos.org/nixpkgs/docs.html.
- data Meta = Meta {
- homepage :: String
- description :: String
- license :: License
- platforms :: [String]
- maintainers :: [String]
- module Distribution.NixOS.Derivation.License
Documentation
A representation of the meta
section used in Nix expressions.
> putStrLn (display (Meta "http://example.org" "an example package" (Unknown Nothing) > ["stdenv.lib.platforms."++x | x<-["unix","cygwin"]] > ["stdenv.lib.maintainers."++x | x<-["joe","jane"]])) meta = { homepage = "http://example.org"; description = "an example package"; license = "unknown"; platforms = stdenv.lib.platforms.unix ++ stdenv.lib.platforms.cygwin; maintainers = [ stdenv.lib.maintainers.joe stdenv.lib.maintainers.jane ]; };
Note that the Text instance definition provides pretty-printing, but no parsing as of now!