Author: viric
Date: Wed Feb 22 22:41:44 2012
New Revision: 32495
URL: https://nixos.org/websvn/nix/?rev=32495&sc=1

Log:
Updating qrupdate and making it do the check phase

Modified:
   nixpkgs/trunk/pkgs/development/libraries/qrupdate/default.nix

Modified: nixpkgs/trunk/pkgs/development/libraries/qrupdate/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/development/libraries/qrupdate/default.nix       Wed Feb 
22 22:41:27 2012        (r32494)
+++ nixpkgs/trunk/pkgs/development/libraries/qrupdate/default.nix       Wed Feb 
22 22:41:44 2012        (r32495)
@@ -1,19 +1,29 @@
 { stdenv
 , fetchurl
 , gfortran
-, blas
 , liblapack
 }:
 stdenv.mkDerivation {
-  name = "qrupdate-1.1.1";
+  name = "qrupdate-1.1.2";
   src = fetchurl {
-    url = mirror://sourceforge/qrupdate/1.1/qrupdate-1.1.1.tar.gz ;
-    sha256 = "0ak68qd15zccr2d2qahxcxsrcdgxy7drg362jj9swv7rb39h00cz";           
        
+    url = mirror://sourceforge/qrupdate/qrupdate-1.1.2.tar.gz ;
+    sha256 = "024f601685phcm1pg8lhif3lpy5j9j0k6n0r46743g4fvh8wg8g2";           
        
   };
   
-  preConfigure = ''
+  configurePhase = ''
     export PREFIX=$out
+    sed -i -e 's,^BLAS=.*,BLAS=-L${liblapack}/lib -L${liblapack.blas} -lcblas 
-lf77blas -latlas,' \
+      -e 's,^LAPACK=.*,LAPACK=-L${liblapack}/lib -llapack -lcblas -lf77blas 
-latlas,' \
+      Makeconf
   '';
+
+  doCheck = true;
+
+  checkTarget = "test";
+
+  buildTarget = "lib";
+
+  installTarget = "install-staticlib";
   
-  buildInputs = [gfortran blas liblapack] ;
+  buildInputs = [ gfortran liblapack ];
 }
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to