summary refs log tree commit diff
path: root/pkgs/development/libraries/at-spi2-core/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/at-spi2-core/default.nix')
-rw-r--r--pkgs/development/libraries/at-spi2-core/default.nix10
1 files changed, 4 insertions, 6 deletions
diff --git a/pkgs/development/libraries/at-spi2-core/default.nix b/pkgs/development/libraries/at-spi2-core/default.nix
index d60a0ff7480..7128e4d3f2b 100644
--- a/pkgs/development/libraries/at-spi2-core/default.nix
+++ b/pkgs/development/libraries/at-spi2-core/default.nix
@@ -1,7 +1,7 @@
 { stdenv, fetchurl, python, pkgconfig, popt, intltool, dbus_glib
 , libX11, xextproto, libSM, libICE, libXtst, libXi, gobjectIntrospection }:
 
-stdenv.mkDerivation (rec {
+stdenv.mkDerivation rec {
   versionMajor = "2.12";
   versionMinor = "0";
   moduleName   = "at-spi2-core";
@@ -21,12 +21,10 @@ stdenv.mkDerivation (rec {
   # ToDo: on non-NixOS we create a symlink from there?
   configureFlags = "--with-dbus-daemondir=/run/current-system/sw/bin/";
 
+  NIX_LDFLAGS = with stdenv; lib.optionalString isDarwin "-lintl";
+
   meta = with stdenv.lib; {
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 }
-  // stdenv.lib.optionalAttrs stdenv.isDarwin {
-    NIX_LDFLAGS = "-lintl";
-  }
-)