2018-06-04 16:25:16 +02:00
|
|
|
{stdenv, fetchurl, fetchpatch, cmake}:
|
2017-01-02 18:24:39 +01:00
|
|
|
|
|
|
|
let
|
2018-10-23 20:10:54 +02:00
|
|
|
version = "3.3.5";
|
2017-01-02 18:24:39 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "eigen-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://bitbucket.org/eigen/eigen/get/${version}.tar.gz";
|
2017-01-02 18:24:39 +01:00
|
|
|
name = "eigen-${version}.tar.gz";
|
2018-10-23 20:10:54 +02:00
|
|
|
sha256 = "13p60x6k61zq2y2in7g4fy5p55cr5dbmj3zvw10zcazxraxbcm04";
|
2017-01-02 18:24:39 +01:00
|
|
|
};
|
2018-06-04 16:25:16 +02:00
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|