about summary refs log tree commit diff
path: root/pkgs/development/libraries/agg/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/agg/default.nix')
-rw-r--r--pkgs/development/libraries/agg/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/libraries/agg/default.nix b/pkgs/development/libraries/agg/default.nix
index bfa7449b04c6..ac3f9ca951fd 100644
--- a/pkgs/development/libraries/agg/default.nix
+++ b/pkgs/development/libraries/agg/default.nix
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
   buildInputs = [
     freetype
     SDL
-  ] ++ lib.optionals stdenv.isLinux [
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
     libX11
   ];
 
@@ -33,13 +33,16 @@ stdenv.mkDerivation rec {
   '';
 
   configureFlags = [
-    (lib.strings.enableFeature stdenv.isLinux "platform")
+    (lib.enableFeature stdenv.hostPlatform.isLinux "platform")
+    (lib.enableFeature (!stdenv.hostPlatform.isDarwin) "sdltest")
     "--enable-examples=no"
-  ] ++ lib.optionals stdenv.isLinux [
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
     "--x-includes=${lib.getDev libX11}/include"
     "--x-libraries=${lib.getLib libX11}/lib"
   ];
 
+  NIX_CFLAGS_COMPILE = [ "-fpermissive" ];
+
   # libtool --tag=CXX --mode=link g++ -g -O2 libexamples.la ../src/platform/X11/libaggplatformX11.la ../src/libagg.la -o alpha_mask2 alpha_mask2.o
   # libtool: error: cannot find the library 'libexamples.la'
   enableParallelBuilding = false;