it++: init at 4.3.1
This commit is contained in:
parent
5601d7483d
commit
f856cb8a9e
55
pkgs/development/libraries/science/math/itpp/default.nix
Normal file
55
pkgs/development/libraries/science/math/itpp/default.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, cmake
|
||||
, gtest
|
||||
, blas
|
||||
, fftw
|
||||
, liblapack
|
||||
, gfortran
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "it++";
|
||||
version = "4.3.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/itpp/itpp-${version}.tar.bz2";
|
||||
sha256 = "0xxqag9wi0lg78xgw7b40rp6wxqp5grqlbs9z0ifvdfzqlhpcwah";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake gfortran ];
|
||||
buildInputs = [
|
||||
fftw
|
||||
liblapack
|
||||
|
||||
# NOTE: OpenBLAS doesn't work here because IT++ doesn't pass aligned
|
||||
# buffers, which causes segfaults in the optimized kernels :-(
|
||||
blas
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBLAS_FOUND:BOOL=TRUE"
|
||||
"-DBLAS_LIBRARIES:STRING=${blas}/lib/libblas.so"
|
||||
"-DLAPACK_FOUND:BOOL=TRUE"
|
||||
"-DLAPACK_LIBRARIES:STRING=${liblapack}/lib/liblapack.so"
|
||||
"-DGTEST_DIR:PATH=${gtest.src}/googletest"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = ''
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/itpp
|
||||
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD/itpp
|
||||
./gtests/itpp_gtests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "IT++ is a C++ library of mathematical, signal processing and communication classes and functions.";
|
||||
homepage = http://itpp.sourceforge.net/;
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ andrew-d ];
|
||||
};
|
||||
}
|
@ -16961,6 +16961,8 @@ in
|
||||
|
||||
irqbalance = callPackage ../os-specific/linux/irqbalance { };
|
||||
|
||||
itpp = callPackage ../development/libraries/science/math/itpp { };
|
||||
|
||||
iw = callPackage ../os-specific/linux/iw { };
|
||||
|
||||
iwd = callPackage ../os-specific/linux/iwd { };
|
||||
|
Loading…
Reference in New Issue
Block a user