2017-01-02 18:24:39 +01:00
|
|
|
{stdenv, fetchurl, cmake}:
|
|
|
|
|
|
|
|
let
|
2018-03-18 00:16:13 +01:00
|
|
|
version = "3.3.4";
|
2017-01-02 18:24:39 +01: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-18 00:16:13 +01:00
|
|
|
sha256 = "1q85bgd6hnsgn0kq73wa4jwh4qdwklfg73pgqrz4zmxvzbqyi1j2";
|
2017-01-02 18:24:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2017-08-23 16:41:16 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed -e '/Cflags:/s@''${prefix}/@@' -i "$out"/share/pkgconfig/eigen3.pc
|
|
|
|
'';
|
|
|
|
|
2017-01-02 18:24:39 +01: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 19:11:17 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ sander raskin ];
|
2017-01-02 18:24:39 +01:00
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
}
|