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