eigen: fetch source from gitlab

This commit is contained in:
Edmund Wu 2020-03-07 12:17:19 -05:00
parent 8d72e6bd5f
commit 805e068059
No known key found for this signature in database
GPG Key ID: 76AA3F9F2BD3E3A0
2 changed files with 19 additions and 22 deletions

View File

@ -1,15 +1,14 @@
{stdenv, fetchurl, cmake}: { stdenv, fetchFromGitLab, cmake }:
let stdenv.mkDerivation rec {
v = "2.0.17"; pname = "eigen";
in version = "2.0.17";
stdenv.mkDerivation {
name = "eigen-${v}";
src = fetchurl { src = fetchFromGitLab {
url = "https://bitbucket.org/eigen/eigen/get/${v}.tar.bz2"; owner = "libeigen";
name = "eigen-${v}.tar.bz2"; repo = "eigen";
sha256 = "0q4ry2pmdb9lvm0g92wi6s6qng3m9q73n5flwbkfcz1nxmbfhmbj"; rev = version;
sha256 = "0d4knrcz04pxmxaqs5r3wv092950kl1z9wsw87vdzi9kgvc6wl0b";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
@ -17,7 +16,7 @@ stdenv.mkDerivation {
meta = with stdenv.lib; { meta = with stdenv.lib; {
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 = http://eigen.tuxfamily.org ; homepage = "https://eigen.tuxfamily.org";
maintainers = with stdenv.lib.maintainers; [ sander raskin ]; maintainers = with stdenv.lib.maintainers; [ sander raskin ];
branch = "2"; branch = "2";
platforms = with stdenv.lib.platforms; unix; platforms = with stdenv.lib.platforms; unix;

View File

@ -1,16 +1,14 @@
{stdenv, fetchurl, cmake}: { stdenv, fetchFromGitLab, cmake }:
let stdenv.mkDerivation rec {
version = "3.3.7";
in
stdenv.mkDerivation {
pname = "eigen"; pname = "eigen";
inherit version; version = "3.3.7";
src = fetchurl { src = fetchFromGitLab {
url = "https://bitbucket.org/eigen/eigen/get/${version}.tar.gz"; owner = "libeigen";
name = "eigen-${version}.tar.gz"; repo = "eigen";
sha256 = "1nnh0v82a5xibcjaph51mx06mxbllk77fvihnd5ba0kpl23yz13y"; rev = version;
sha256 = "1i3cvg8d70dk99fl3lrv3wqhfpdnm5kx01fl7r2bz46sk9bphwm1";
}; };
patches = [ patches = [
@ -22,7 +20,7 @@ stdenv.mkDerivation {
meta = with stdenv.lib; { meta = with stdenv.lib; {
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 = http://eigen.tuxfamily.org ; homepage = "https://eigen.tuxfamily.org";
platforms = platforms.unix; platforms = platforms.unix;
maintainers = with stdenv.lib.maintainers; [ sander raskin ]; maintainers = with stdenv.lib.maintainers; [ sander raskin ];
inherit version; inherit version;