1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 cmake,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "eigen";
10 version = "2.0.17";
11
12 src = fetchFromGitLab {
13 owner = "libeigen";
14 repo = "eigen";
15 rev = version;
16 hash = "sha256-C1Bu2H4zxd/2QVzz9AOdoCSRwOYjF41Vr/0S8Fm2kzQ=";
17 };
18
19 nativeBuildInputs = [ cmake ];
20
21 meta = with lib; {
22 homepage = "https://eigen.tuxfamily.org";
23 description = "C++ template library for linear algebra: vectors, matrices, and related algorithms";
24 license = licenses.lgpl3Plus;
25 maintainers = with maintainers; [
26 sander
27 raskin
28 ];
29 platforms = platforms.unix;
30 };
31}