distribution-nixpkgs-1.1: Types and functions to manipulate the Nixpkgs distribution

Safe HaskellNone
LanguageHaskell2010

Distribution.Nixpkgs.Meta

Description

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.

Synopsis

Documentation

data Meta Source #

A representation of the meta section used in Nix expressions.

>>> :set -XOverloadedStrings
>>> :{
  print (pPrint (Meta "http://example.org" "an example package" (Unknown Nothing)
                 (Set.singleton (Platform X86_64 Linux))
                 Set.empty
                 (Set.fromList ["joe","jane"])
                 True))
:}
homepage = "http://example.org";
description = "an example package";
license = "unknown";
platforms = [ "x86_64-linux" ];
hydraPlatforms = stdenv.lib.platforms.none;
maintainers = with stdenv.lib.maintainers; [ jane joe ];
broken = true;

Instances

Eq Meta Source # 

Methods

(==) :: Meta -> Meta -> Bool #

(/=) :: Meta -> Meta -> Bool #

Ord Meta Source # 

Methods

compare :: Meta -> Meta -> Ordering #

(<) :: Meta -> Meta -> Bool #

(<=) :: Meta -> Meta -> Bool #

(>) :: Meta -> Meta -> Bool #

(>=) :: Meta -> Meta -> Bool #

max :: Meta -> Meta -> Meta #

min :: Meta -> Meta -> Meta #

Show Meta Source # 

Methods

showsPrec :: Int -> Meta -> ShowS #

show :: Meta -> String #

showList :: [Meta] -> ShowS #

Generic Meta Source # 

Associated Types

type Rep Meta :: * -> * #

Methods

from :: Meta -> Rep Meta x #

to :: Rep Meta x -> Meta #

NFData Meta Source # 

Methods

rnf :: Meta -> () #

Pretty Meta Source # 
type Rep Meta Source #