distribution-nixpkgs-1.2: 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 # 
Instance details

Defined in Distribution.Nixpkgs.Meta

Methods

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

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

Ord Meta Source # 
Instance details

Defined in Distribution.Nixpkgs.Meta

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 # 
Instance details

Defined in Distribution.Nixpkgs.Meta

Methods

showsPrec :: Int -> Meta -> ShowS #

show :: Meta -> String #

showList :: [Meta] -> ShowS #

Generic Meta Source # 
Instance details

Defined in Distribution.Nixpkgs.Meta

Associated Types

type Rep Meta :: Type -> Type #

Methods

from :: Meta -> Rep Meta x #

to :: Rep Meta x -> Meta #

NFData Meta Source # 
Instance details

Defined in Distribution.Nixpkgs.Meta

Methods

rnf :: Meta -> () #

Pretty Meta Source # 
Instance details

Defined in Distribution.Nixpkgs.Meta

type Rep Meta Source # 
Instance details

Defined in Distribution.Nixpkgs.Meta