@@ -49,6 +49,7 @@ data Meta = Meta
49 , platforms :: [String] -- ^ list of supported platforms (from @pkgs\/lib\/platforms.nix@)
49 , platforms :: [String] -- ^ list of supported platforms (from @pkgs\/lib\/platforms.nix@)
50 , hydraPlatforms :: [String] -- ^ list of platforms built by Hydra (from @pkgs\/lib\/platforms.nix@)
50 , hydraPlatforms :: [String] -- ^ list of platforms built by Hydra (from @pkgs\/lib\/platforms.nix@)
51 , maintainers :: [String] -- ^ list of maintainers from @pkgs\/lib\/maintainers.nix@
51 , maintainers :: [String] -- ^ list of maintainers from @pkgs\/lib\/maintainers.nix@
52+ , broken :: Bool -- ^ set to @true@ if the build is known to fail
53 deriving (Show, Eq, Ord)
54 deriving (Show, Eq, Ord)
@@ -57,7 +58,7 @@ instance Text Meta where
57 parse = error "parsing Distribution.NixOS.Derivation.Cabal.Meta is not supported yet"
58 parse = error "parsing Distribution.NixOS.Derivation.Cabal.Meta is not supported yet"
59instance NFData Meta where
60instance NFData Meta where
60− rnf (Meta a b c d e f) = a `deepseq` b `deepseq` c `deepseq` d `deepseq` e `deepseq` f `deepseq` ()
61+ rnf (Meta a b c d e f g) = a `deepseq` b `deepseq` c `deepseq` d `deepseq` e `deepseq` f `deepseq` g `deepseq` ()
62renderMeta :: Meta -> Doc
63renderMeta :: Meta -> Doc
63renderMeta meta = vcat
64renderMeta meta = vcat
@@ -69,6 +70,7 @@ renderMeta meta = vcat
69 , onlyIf (not (null (hydraPlatforms meta))) $ sep
70 , onlyIf (not (null (hydraPlatforms meta))) $ sep
70 [ text "hydraPlatforms" <+> equals, renderPlatformList (hydraPlatforms meta) ]
71 [ text "hydraPlatforms" <+> equals, renderPlatformList (hydraPlatforms meta) ]
71 , listattr "maintainers" (text "with self.stdenv.lib.maintainers;") (maintainers meta)
72 , listattr "maintainers" (text "with self.stdenv.lib.maintainers;") (maintainers meta)
73+ , boolattr "broken" (broken meta) (broken meta)
74renderPlatformList :: [String] -> Doc
76renderPlatformList :: [String] -> Doc