Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 30 lines 732 B view raw
1{stdenv, fetchurl, cmake}: 2 3let 4 version = "3.3.7"; 5in 6stdenv.mkDerivation { 7 pname = "eigen"; 8 inherit version; 9 10 src = fetchurl { 11 url = "https://bitbucket.org/eigen/eigen/get/${version}.tar.gz"; 12 name = "eigen-${version}.tar.gz"; 13 sha256 = "1nnh0v82a5xibcjaph51mx06mxbllk77fvihnd5ba0kpl23yz13y"; 14 }; 15 16 patches = [ 17 ./include-dir.patch 18 ]; 19 20 nativeBuildInputs = [ cmake ]; 21 22 meta = with stdenv.lib; { 23 description = "C++ template library for linear algebra: vectors, matrices, and related algorithms"; 24 license = licenses.lgpl3Plus; 25 homepage = http://eigen.tuxfamily.org ; 26 platforms = platforms.unix; 27 maintainers = with stdenv.lib.maintainers; [ sander raskin ]; 28 inherit version; 29 }; 30}