From 1957d682473ee67f96ace3ce3320c89b77aec8ae Mon Sep 17 00:00:00 2001 From: chn Date: Thu, 28 Sep 2023 10:06:06 +0800 Subject: [PATCH] add eigen --- local/pkgs/default.nix | 1 + local/pkgs/eigen/default.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 local/pkgs/eigen/default.nix diff --git a/local/pkgs/default.nix b/local/pkgs/default.nix index fb7fa9e8..4e55d60a 100644 --- a/local/pkgs/default.nix +++ b/local/pkgs/default.nix @@ -30,4 +30,5 @@ nodesoup = callPackage ./nodesoup {}; matplotplusplus = callPackage ./matplotplusplus { inherit nodesoup; }; zpp-bits = callPackage ./zpp-bits {}; + eigen = callPackage ./eigen {}; } diff --git a/local/pkgs/eigen/default.nix b/local/pkgs/eigen/default.nix new file mode 100644 index 00000000..f7fed7ae --- /dev/null +++ b/local/pkgs/eigen/default.nix @@ -0,0 +1,12 @@ +{ lib, stdenv, fetchFromGitLab, cmake }: stdenv.mkDerivation rec +{ + name = "eigen"; + src = fetchFromGitLab + { + owner = "libeigen"; + repo = name; + rev = "6d829e766ff1b1ab867d93631163cbc63ed5798f"; + sha256 = "BXUnizcRPrOyiPpoyYJ4VVOjlG49aj80mgzPKmEYPKU="; + }; + nativeBuildInputs = [ cmake ]; +}