2017-01-02 17:24:39 +00:00
|
|
|
{stdenv, fetchurl, cmake}:
|
|
|
|
|
|
|
|
let
|
2018-03-17 23:16:13 +00:00
|
|
|
version = "3.3.4";
|
2017-01-02 17:24:39 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "eigen-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://bitbucket.org/eigen/eigen/get/${version}.tar.gz";
|
|
|
|
name = "eigen-${version}.tar.gz";
|
2018-03-17 23:16:13 +00:00
|
|
|
sha256 = "1q85bgd6hnsgn0kq73wa4jwh4qdwklfg73pgqrz4zmxvzbqyi1j2";
|
2017-01-02 17:24:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2017-08-23 15:41:16 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed -e '/Cflags:/s@''${prefix}/@@' -i "$out"/share/pkgconfig/eigen3.pc
|
|
|
|
'';
|
|
|
|
|
2017-01-02 17:24:39 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "C++ template library for linear algebra: vectors, matrices, and related algorithms";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
homepage = http://eigen.tuxfamily.org ;
|
|
|
|
platforms = platforms.unix;
|
2017-03-27 18:11:17 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ sander raskin ];
|
2017-01-02 17:24:39 +00:00
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
}
|