diff options
author | Nick Cao <nickcao@nichi.co> | 2023-03-05 23:20:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 23:20:20 +0800 |
commit | 794f34657e066a5e8cc4bb34491fee02240c6ac4 (patch) | |
tree | 7dccd71b3151fc4c87837dcb00e263d44d1e213c /pkgs | |
parent | d2991ec8ed2995bf49492b4a6b1b3fbd8d7c24c3 (diff) | |
parent | 32b51c198f9ac8c504ebb42ecfa62a3cf1884703 (diff) |
Merge pull request #219625 from NickCao/eigenmath
eigenmath: init at unstable-2023-03-05
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/science/math/eigenmath/default.nix | 39 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/eigenmath/default.nix b/pkgs/applications/science/math/eigenmath/default.nix new file mode 100644 index 0000000000000..ddeba369366e5 --- /dev/null +++ b/pkgs/applications/science/math/eigenmath/default.nix @@ -0,0 +1,39 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e2481e578fc89..04074f2a09e7c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19671,6 +19671,8 @@ with pkgs; 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; }; |