2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, cmake }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "eigen";
|
|
|
|
version = "3.3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "libeigen";
|
|
|
|
repo = "eigen";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1i3cvg8d70dk99fl3lrv3wqhfpdnm5kx01fl7r2bz46sk9bphwm1";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./include-dir.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "C++ template library for linear algebra: vectors, matrices, and related algorithms";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
homepage = "https://eigen.tuxfamily.org";
|
|
|
|
platforms = platforms.unix;
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ sander raskin ];
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
}
|