summary refs log tree commit diff
path: root/pkgs/development/libraries/wayland
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-12-12 00:56:12 +0000
committerGitHub <noreply@github.com>2018-12-12 00:56:12 +0000
commitd66c960c2346496c52960c963ecf32b44b587b54 (patch)
tree4d399b21a2b145abdf5d4677527174bdd63f538d /pkgs/development/libraries/wayland
parent3a621ab787998cfa499db120fd89851b81e9b8d5 (diff)
parentfbb114107d7fae6c0488cc7cc30d4786fc1dd9c6 (diff)
downloadnixpkgs-d66c960c2346496c52960c963ecf32b44b587b54.tar
nixpkgs-d66c960c2346496c52960c963ecf32b44b587b54.tar.gz
nixpkgs-d66c960c2346496c52960c963ecf32b44b587b54.tar.bz2
nixpkgs-d66c960c2346496c52960c963ecf32b44b587b54.tar.lz
nixpkgs-d66c960c2346496c52960c963ecf32b44b587b54.tar.xz
nixpkgs-d66c960c2346496c52960c963ecf32b44b587b54.tar.zst
nixpkgs-d66c960c2346496c52960c963ecf32b44b587b54.zip
Merge pull request #51154 from Mic92/cross-fixes
Various cross-compilation fixes
Diffstat (limited to 'pkgs/development/libraries/wayland')
-rw-r--r--pkgs/development/libraries/wayland/default.nix17
1 files changed, 13 insertions, 4 deletions
diff --git a/pkgs/development/libraries/wayland/default.nix b/pkgs/development/libraries/wayland/default.nix
index 866b1232aef..c694cc7b445 100644
--- a/pkgs/development/libraries/wayland/default.nix
+++ b/pkgs/development/libraries/wayland/default.nix
@@ -1,5 +1,5 @@
 { lib, stdenv, fetchurl, pkgconfig
-, libffi, libxml2
+, libffi, libxml2, wayland
 , expat ? null # Build wayland-scanner (currently cannot be disabled as of 1.7.0)
 }:
 
@@ -15,9 +15,18 @@ stdenv.mkDerivation rec {
     sha256 = "1xajhxad43izq9f7sbww1hlg42nayijy8xnp21kgpk09c6sw4wjf";
   };
 
-  configureFlags = [ "--with-scanner" "--disable-documentation" ];
-
-  nativeBuildInputs = [ pkgconfig ];
+  configureFlags = [
+    "--disable-documentation"
+  ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
+    "--with-host-scanner"
+  ];
+
+  nativeBuildInputs = [
+    pkgconfig
+  ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
+    # for wayland-scanner during build
+    wayland
+  ];
 
   buildInputs = [ libffi /* docbook_xsl doxygen graphviz libxslt xmlto */ expat libxml2 ];