summary refs log blame commit diff
path: root/pkgs/development/libraries/eigen/default.nix
blob: 37180580421044c96a50ebd27152d7661ca1edc3 (plain) (tree)
1
2
3
4
5
6
7
8
9




                 
 
                         
                  
                    
 

                         
                 
                  
                                                                   
    
 


                       
 
                                
 
                    
                                             

                                                                                                       
                                                      
                               
    
 
{ lib
, stdenv
, fetchFromGitLab
, cmake
}:

stdenv.mkDerivation rec {
  pname = "eigen";
  version = "3.3.9";

  src = fetchFromGitLab {
    owner = "libeigen";
    repo = pname;
    rev = version;
    sha256 = "sha256-JMIG7CLMndUsECfbKpXE3BtVFuAjn+CZvf8GXZpLkFQ=";
  };

  patches = [
    ./include-dir.patch
  ];

  nativeBuildInputs = [ cmake ];

  meta = with lib; {
    homepage = "https://eigen.tuxfamily.org";
    description = "C++ template library for linear algebra: vectors, matrices, and related algorithms";
    license = licenses.lgpl3Plus;
    maintainers = with maintainers; [ sander raskin ];
    platforms = platforms.unix;
  };
}