From 65394f22e2e1dac3f80bb7042185faaded5aa05c Mon Sep 17 00:00:00 2001 From: Rick van Schijndel Date: Wed, 14 Jul 2021 23:10:58 +0200 Subject: [PATCH] wmctrl: support cross-compilation Add dependencies on correct place for cross-compiling. Fix issue where 'glib.h' cannot be found when cross-compiling. --- pkgs/tools/X11/wmctrl/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/X11/wmctrl/default.nix b/pkgs/tools/X11/wmctrl/default.nix index 0a01a3dad5a4..19a464aff72a 100644 --- a/pkgs/tools/X11/wmctrl/default.nix +++ b/pkgs/tools/X11/wmctrl/default.nix @@ -17,7 +17,9 @@ stdenv.mkDerivation rec { sha256 = "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"; }; - nativeBuildInputs = [ pkg-config ]; + strictDeps = true; + depsBuildBuild = [ pkg-config ]; + nativeBuildInputs = [ glib.dev ]; buildInputs = [ libX11 libXmu glib ]; patches = [ ./64-bit-data.patch ];