Merge pull request #219625 from NickCao/eigenmath

eigenmath: init at unstable-2023-03-05

Nick Cao 794f3465 d2991ec8

Changed files
+41
pkgs
applications
science
math
eigenmath
top-level
+39
pkgs/applications/science/math/eigenmath/default.nix
···
···
+
{ lib
+
, stdenv
+
, fetchFromGitHub
+
, fetchpatch
+
}:
+
+
stdenv.mkDerivation rec {
+
pname = "eigenmath";
+
version = "unstable-2023-03-05";
+
+
src = fetchFromGitHub {
+
owner = "georgeweigt";
+
repo = pname;
+
rev = "633d5b0b2f2b87b6377bc4f715604f79b17aab66";
+
hash = "sha256-5LOSyfeGavWesAR7jqd37Z845iyNstr/cJdQiWHlIPg=";
+
};
+
+
patches = [
+
# treewide: use $(CC) instead of hardcoding gcc
+
# https://github.com/georgeweigt/eigenmath/pull/18
+
(fetchpatch {
+
url = "https://github.com/georgeweigt/eigenmath/commit/70551b3624ea25911f6de608c9ee9833885ab0b8.patch";
+
hash = "sha256-g2crXOlC5SM1vAq87Vg/2zWMvx9DPFWEPaTrrPbcDZ0=";
+
})
+
];
+
+
installPhase = ''
+
runHook preInstall
+
install -Dm555 eigenmath "$out/bin/eigenmath"
+
runHook postInstall
+
'';
+
+
meta = with lib;{
+
description = "Computer algebra system written in C";
+
homepage = "https://georgeweigt.github.io";
+
license = licenses.bsd2;
+
maintainers = with maintainers; [ nickcao ];
+
};
+
}
+2
pkgs/top-level/all-packages.nix
···
eigen2 = callPackage ../development/libraries/eigen/2.0.nix {};
vapoursynth = callPackage ../development/libraries/vapoursynth {
inherit (darwin.apple_sdk.frameworks) ApplicationServices;
};
···
eigen2 = callPackage ../development/libraries/eigen/2.0.nix {};
+
eigenmath = callPackage ../applications/science/math/eigenmath { };
+
vapoursynth = callPackage ../development/libraries/vapoursynth {
inherit (darwin.apple_sdk.frameworks) ApplicationServices;
};