Author: shlevy
Date: Fri Jan  6 15:55:24 2012
New Revision: 31351
URL: https://nixos.org/websvn/nix/?rev=31351&sc=1

Log:
ledger3: Get building on darwin

Modified:
   nixpkgs/trunk/pkgs/applications/office/ledger/3.0.nix

Modified: nixpkgs/trunk/pkgs/applications/office/ledger/3.0.nix
==============================================================================
--- nixpkgs/trunk/pkgs/applications/office/ledger/3.0.nix       Fri Jan  6 
15:44:14 2012        (r31350)
+++ nixpkgs/trunk/pkgs/applications/office/ledger/3.0.nix       Fri Jan  6 
15:55:24 2012        (r31351)
@@ -18,6 +18,10 @@
     git texinfo
   ];
 
+  CPPFLAGS = "-I${gmp}/include -I${mpfr}/include";
+
+  LDFLAGS = "-L${gmp}/lib -L${mpfr}/lib";
+
   buildPhase = ''
     sed -i acprep \
       -e 's|search_prefixes = .*|search_prefixes = ["${boost}"]|'
@@ -25,7 +29,7 @@
     python acprep update --no-pch --prefix=$out
   '';
 
-  doCheck = true;
+  doCheck = !stdenv.isDarwin;
 
   enableParallelBuilding = true;
 
@@ -41,7 +45,7 @@
       their data, there really is no alternative.
     '';
 
-    platforms = stdenv.lib.platforms.linux;
+    platforms = stdenv.lib.platforms.all;
     maintainers = [ stdenv.lib.maintainers.simons ];
   };
 }
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to