wayland: Always build documentation

This commit is contained in:
William A. Kennington III 2015-02-19 09:57:13 -08:00
parent 2cbd639b2a
commit e574da83de
2 changed files with 10 additions and 13 deletions

View file

@ -1,14 +1,10 @@
{ stdenv, fetchurl, pkgconfig { stdenv, fetchurl, pkgconfig
, libffi , libffi, docbook_xsl, doxygen, graphviz, libxslt, xmlto
, scannerSupport ? true, expat ? null # Build wayland-scanner (currently cannot be disabled as of 1.7.0) , expat ? null # Build wayland-scanner (currently cannot be disabled as of 1.7.0)
, documentationSupport ? false, docbook_xsl ? null, doxygen ? null, graphviz-nox ? null, libxslt ? null, xmlto ? null #, publican ? null
}: }:
# Require the optional to be enabled until upstream fixes or removes the configure flag # Require the optional to be enabled until upstream fixes or removes the configure flag
assert scannerSupport; assert expat != null;
assert scannerSupport -> (expat != null);
assert documentationSupport -> ((docbook_xsl != null) && (doxygen != null) && (graphviz-nox != null) && (libxslt != null) && (xmlto != null));
let let
mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}"; mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}";
@ -25,15 +21,12 @@ stdenv.mkDerivation rec {
}; };
configureFlags = [ configureFlags = [
(mkFlag scannerSupport "scanner") (mkFlag (expat != null) "scanner")
(mkFlag documentationSupport "documentation")
]; ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libffi ] buildInputs = [ libffi docbook_xsl doxygen graphviz libxslt xmlto expat ];
++ optional scannerSupport expat
++ optionals documentationSupport [ docbook_xsl doxygen graphviz-nox libxslt xmlto ];
meta = { meta = {
description = "Reference implementation of the wayland protocol"; description = "Reference implementation of the wayland protocol";
@ -42,4 +35,6 @@ stdenv.mkDerivation rec {
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ codyopel wkennington ]; maintainers = with maintainers; [ codyopel wkennington ];
}; };
passthru.version = version;
} }

View file

@ -7432,7 +7432,9 @@ let
wavpack = callPackage ../development/libraries/wavpack { }; wavpack = callPackage ../development/libraries/wavpack { };
wayland = callPackage ../development/libraries/wayland { }; wayland = callPackage ../development/libraries/wayland {
graphviz = graphviz-nox;
};
webkit = webkitgtk; webkit = webkitgtk;