git.iko.soy/typeable/nixpkgs
on master help sign in
wayland: Always build documentation
commite574da83de877de5818ab75129ba840147c50d77 authorWilliam A. Kennington III <william@wkennington.com> dateThu 19 Feb 2015, 09:57 (12 years ago) parent2cbd639
2 files changed+10−13
pkgs/development/libraries/wayland/default.nix+7−12 pkgs/top-level/all-packages.nix+3−1
pkgs/development/libraries/wayland/default.nix+7−12
@@ -1,14 +1,10 @@
11{ stdenv, fetchurl, pkgconfig
2−, libffi
3−, scannerSupport ? true, expat ? null # Build wayland-scanner (currently cannot be disabled as of 1.7.0)
4−, documentationSupport ? false, docbook_xsl ? null, doxygen ? null, graphviz-nox ? null, libxslt ? null, xmlto ? null #, publican ? null
2+, libffi, docbook_xsl, doxygen, graphviz, libxslt, xmlto
3+, expat ? null # Build wayland-scanner (currently cannot be disabled as of 1.7.0)
54}:
65
76# Require the optional to be enabled until upstream fixes or removes the configure flag
8−assert scannerSupport;
9−
10−assert scannerSupport -> (expat != null);
11−assert documentationSupport -> ((docbook_xsl != null) && (doxygen != null) && (graphviz-nox != null) && (libxslt != null) && (xmlto != null));
7+assert expat != null;
128
139let
1410 mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}";
@@ -25,15 +21,12 @@ stdenv.mkDerivation rec {
2521 };
2622
2723 configureFlags = [
28− (mkFlag scannerSupport "scanner")
29− (mkFlag documentationSupport "documentation")
24+ (mkFlag (expat != null) "scanner")
3025 ];
3126
3227 nativeBuildInputs = [ pkgconfig ];
3328
34− buildInputs = [ libffi ]
35− ++ optional scannerSupport expat
36− ++ optionals documentationSupport [ docbook_xsl doxygen graphviz-nox libxslt xmlto ];
29+ buildInputs = [ libffi docbook_xsl doxygen graphviz libxslt xmlto expat ];
3730
3831 meta = {
3932 description = "Reference implementation of the wayland protocol";
@@ -42,4 +35,6 @@ stdenv.mkDerivation rec {
4235 platforms = platforms.linux;
4336 maintainers = with maintainers; [ codyopel wkennington ];
4437 };
38+
39+ passthru.version = version;
4540}
pkgs/top-level/all-packages.nix+3−1
@@ -7432,7 +7432,9 @@ let
74327432
74337433 wavpack = callPackage ../development/libraries/wavpack { };
74347434
7435− wayland = callPackage ../development/libraries/wayland { };
7435+ wayland = callPackage ../development/libraries/wayland {
7436+ graphviz = graphviz-nox;
7437+ };
74367438
74377439 webkit = webkitgtk;
74387440