From 7332051e27ae2aebb293d231593b213039b3ecd7 Mon Sep 17 00:00:00 2001 From: Christian Kampka Date: Tue, 1 Sep 2020 17:13:54 +0200 Subject: [PATCH] glibmm: Add glib to nativeBuildInputs While compiling, glibmm tries to execute glib-compile-schemas, which requires glib to be in the nativeBuildInputs for cross-platform builds. --- pkgs/development/libraries/glibmm/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/glibmm/default.nix b/pkgs/development/libraries/glibmm/default.nix index dff122d38d12..53e924b1325a 100644 --- a/pkgs/development/libraries/glibmm/default.nix +++ b/pkgs/development/libraries/glibmm/default.nix @@ -11,7 +11,12 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev" ]; - nativeBuildInputs = [ pkgconfig gnum4 ]; + nativeBuildInputs = [ + pkgconfig + gnum4 + glib # for glib-compile-schemas + ]; + buildInputs = stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Cocoa ]);