wayland: Fewer build-time dependencies
This commit is contained in:
parent
279aca0f4b
commit
eb5c161640
1 changed files with 4 additions and 10 deletions
|
@ -1,16 +1,12 @@
|
||||||
{ stdenv, fetchurl, pkgconfig
|
{ stdenv, fetchurl, pkgconfig
|
||||||
, libffi, docbook_xsl, doxygen, graphviz, libxslt, xmlto
|
, libffi, docbook_xsl, doxygen, graphviz, libxslt, xmlto, expat
|
||||||
, 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
|
# Require the optional to be enabled until upstream fixes or removes the configure flag
|
||||||
assert expat != null;
|
assert expat != null;
|
||||||
|
|
||||||
let
|
|
||||||
mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}";
|
|
||||||
in
|
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "wayland-${version}";
|
name = "wayland-${version}";
|
||||||
version = "1.7.0";
|
version = "1.7.0";
|
||||||
|
@ -20,13 +16,11 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "173w0pqzk2m7hjlg15bymrx7ynxgq1ciadg03hzybxwnvfi4gsmx";
|
sha256 = "173w0pqzk2m7hjlg15bymrx7ynxgq1ciadg03hzybxwnvfi4gsmx";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = "--with-scanner --disable-documentation";
|
||||||
(mkFlag (expat != null) "scanner")
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ libffi docbook_xsl doxygen graphviz libxslt xmlto expat ];
|
buildInputs = [ libffi /* docbook_xsl doxygen graphviz libxslt xmlto */ expat ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Reference implementation of the wayland protocol";
|
description = "Reference implementation of the wayland protocol";
|
||||||
|
|
Loading…
Reference in a new issue