eigen: refactor
This commit is contained in:
parent
05017741d7
commit
7e8c6fd28a
@ -1,4 +1,8 @@
|
|||||||
{ lib, stdenv, fetchFromGitLab, cmake }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitLab
|
||||||
|
, cmake
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "eigen";
|
pname = "eigen";
|
||||||
@ -6,9 +10,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "libeigen";
|
owner = "libeigen";
|
||||||
repo = "eigen";
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1i3cvg8d70dk99fl3lrv3wqhfpdnm5kx01fl7r2bz46sk9bphwm1";
|
hash = "sha256-oXJ4V5rakL9EPtQF0Geptl0HMR8700FdSrOB09DbbMQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@ -18,11 +22,10 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
homepage = "https://eigen.tuxfamily.org";
|
||||||
description = "C++ template library for linear algebra: vectors, matrices, and related algorithms";
|
description = "C++ template library for linear algebra: vectors, matrices, and related algorithms";
|
||||||
license = licenses.lgpl3Plus;
|
license = licenses.lgpl3Plus;
|
||||||
homepage = "https://eigen.tuxfamily.org";
|
maintainers = with maintainers; [ sander raskin ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with lib.maintainers; [ sander raskin ];
|
|
||||||
inherit version;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user