haskell-hmatrix: linear algebra and numerical computation (v0.9.3.9)
svn path=/nixpkgs/trunk/; revision=22008
This commit is contained in:
parent
6c526f1695
commit
3182083b58
|
@ -0,0 +1,19 @@
|
|||
{cabal, QuickCheck, HUnit, storableComplex, gsl, liblapack, blas, vector}:
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "hmatrix";
|
||||
version = "0.9.3.0";
|
||||
sha256 = "1p2c37j29nxq1ijs78xn7293cwjzgcl6hx8ri5qz7nijifmpcrkr";
|
||||
propagatedBuildInputs = [QuickCheck HUnit storableComplex blas gsl liblapack vector];
|
||||
configureFlags = "-fvector";
|
||||
/* dirty hack to find blas at link time */
|
||||
postConfigure = ''
|
||||
sed -i -e "/^extra-libraries/ s/: /: blas /" hmatrix.buildinfo
|
||||
sed -i -e "/^extra-libraries/ s/$/ blas/" hmatrix.buildinfo
|
||||
'';
|
||||
extraLibDirs = "--extra-lib-dir=${blas}/lib --extra-lib-dir=${gsl}/lib --extra-lib-dir=${liblapack}/lib";
|
||||
meta = {
|
||||
description = "Linear algebra and numerical computation";
|
||||
maintainers = [ self.stdenv.lib.maintainers.guibert ];
|
||||
};
|
||||
})
|
|
@ -384,6 +384,11 @@ rec {
|
|||
inherit cabal ;
|
||||
};
|
||||
|
||||
hmatrix = import ../development/libraries/haskell/hmatrix {
|
||||
inherit cabal QuickCheck HUnit storableComplex vector;
|
||||
inherit (pkgs) gsl liblapack/* lapack library */ blas;
|
||||
};
|
||||
|
||||
hscolour = import ../development/libraries/haskell/hscolour {
|
||||
inherit cabal;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue