nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitLab, cmake }:
2
3stdenv.mkDerivation rec {
4 pname = "eigen";
5 version = "3.3.7";
6
7 src = fetchFromGitLab {
8 owner = "libeigen";
9 repo = "eigen";
10 rev = version;
11 sha256 = "1i3cvg8d70dk99fl3lrv3wqhfpdnm5kx01fl7r2bz46sk9bphwm1";
12 };
13
14 patches = [
15 ./include-dir.patch
16 ];
17
18 nativeBuildInputs = [ cmake ];
19
20 meta = with stdenv.lib; {
21 description = "C++ template library for linear algebra: vectors, matrices, and related algorithms";
22 license = licenses.lgpl3Plus;
23 homepage = "https://eigen.tuxfamily.org";
24 platforms = platforms.unix;
25 maintainers = with stdenv.lib.maintainers; [ sander raskin ];
26 inherit version;
27 };
28}