diff options
author | Rick van Schijndel <rol3517@gmail.com> | 2021-05-25 21:30:50 +0200 |
---|---|---|
committer | Rick van Schijndel <rol3517@gmail.com> | 2021-05-27 23:12:47 +0200 |
commit | 0e81850754fdc276165adc5ca51737da986b667d (patch) | |
tree | 4beaf697672ea081eaadc3f3fb9b8797a17be191 /pkgs/development/libraries/atk/default.nix | |
parent | 25c0253f00e792ae631668ec00d003ccf7c0c304 (diff) |
atk: clean up cross-compilation logic
Diffstat (limited to 'pkgs/development/libraries/atk/default.nix')
-rw-r--r-- | pkgs/development/libraries/atk/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/development/libraries/atk/default.nix b/pkgs/development/libraries/atk/default.nix index 38c557316982..08e6e5b0e41b 100644 --- a/pkgs/development/libraries/atk/default.nix +++ b/pkgs/development/libraries/atk/default.nix @@ -1,6 +1,5 @@ { lib, stdenv, fetchurl, meson, ninja, gettext, pkg-config, glib , fixDarwinDylibNames, gobject-introspection, gnome -, withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform }: let @@ -18,9 +17,8 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev" ]; - nativeBuildInputs = [ meson ninja pkg-config gettext glib ] - ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames - ++ lib.optional withIntrospection gobject-introspection; + nativeBuildInputs = [ meson ninja pkg-config gettext gobject-introspection glib ] + ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; propagatedBuildInputs = [ # Required by atk.pc @@ -34,7 +32,7 @@ stdenv.mkDerivation rec { ]; mesonFlags = [ - "-Dintrospection=${lib.boolToString withIntrospection}" + "-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}" ]; doCheck = true; |