mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
wayland: Always build documentation
This commit is contained in:
parent
2cbd639b2a
commit
e574da83de
2 changed files with 10 additions and 13 deletions
|
@ -1,14 +1,10 @@
|
|||
{ stdenv, fetchurl, pkgconfig
|
||||
, libffi
|
||||
, scannerSupport ? true, 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
|
||||
, libffi, docbook_xsl, doxygen, graphviz, libxslt, xmlto
|
||||
, expat ? null # Build wayland-scanner (currently cannot be disabled as of 1.7.0)
|
||||
}:
|
||||
|
||||
# Require the optional to be enabled until upstream fixes or removes the configure flag
|
||||
assert scannerSupport;
|
||||
|
||||
assert scannerSupport -> (expat != null);
|
||||
assert documentationSupport -> ((docbook_xsl != null) && (doxygen != null) && (graphviz-nox != null) && (libxslt != null) && (xmlto != null));
|
||||
assert expat != null;
|
||||
|
||||
let
|
||||
mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}";
|
||||
|
@ -25,15 +21,12 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
configureFlags = [
|
||||
(mkFlag scannerSupport "scanner")
|
||||
(mkFlag documentationSupport "documentation")
|
||||
(mkFlag (expat != null) "scanner")
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
buildInputs = [ libffi ]
|
||||
++ optional scannerSupport expat
|
||||
++ optionals documentationSupport [ docbook_xsl doxygen graphviz-nox libxslt xmlto ];
|
||||
buildInputs = [ libffi docbook_xsl doxygen graphviz libxslt xmlto expat ];
|
||||
|
||||
meta = {
|
||||
description = "Reference implementation of the wayland protocol";
|
||||
|
@ -42,4 +35,6 @@ stdenv.mkDerivation rec {
|
|||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ codyopel wkennington ];
|
||||
};
|
||||
|
||||
passthru.version = version;
|
||||
}
|
||||
|
|
|
@ -7432,7 +7432,9 @@ let
|
|||
|
||||
wavpack = callPackage ../development/libraries/wavpack { };
|
||||
|
||||
wayland = callPackage ../development/libraries/wayland { };
|
||||
wayland = callPackage ../development/libraries/wayland {
|
||||
graphviz = graphviz-nox;
|
||||
};
|
||||
|
||||
webkit = webkitgtk;
|
||||
|
||||
|
|
Loading…
Reference in a new issue