Merge pull request #219625 from NickCao/eigenmath

eigenmath: init at unstable-2023-03-05

authored by Nick Cao and committed by GitHub 794f3465 d2991ec8

+41
+39
pkgs/applications/science/math/eigenmath/default.nix
···
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchpatch 5 + }: 6 + 7 + stdenv.mkDerivation rec { 8 + pname = "eigenmath"; 9 + version = "unstable-2023-03-05"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "georgeweigt"; 13 + repo = pname; 14 + rev = "633d5b0b2f2b87b6377bc4f715604f79b17aab66"; 15 + hash = "sha256-5LOSyfeGavWesAR7jqd37Z845iyNstr/cJdQiWHlIPg="; 16 + }; 17 + 18 + patches = [ 19 + # treewide: use $(CC) instead of hardcoding gcc 20 + # https://github.com/georgeweigt/eigenmath/pull/18 21 + (fetchpatch { 22 + url = "https://github.com/georgeweigt/eigenmath/commit/70551b3624ea25911f6de608c9ee9833885ab0b8.patch"; 23 + hash = "sha256-g2crXOlC5SM1vAq87Vg/2zWMvx9DPFWEPaTrrPbcDZ0="; 24 + }) 25 + ]; 26 + 27 + installPhase = '' 28 + runHook preInstall 29 + install -Dm555 eigenmath "$out/bin/eigenmath" 30 + runHook postInstall 31 + ''; 32 + 33 + meta = with lib;{ 34 + description = "Computer algebra system written in C"; 35 + homepage = "https://georgeweigt.github.io"; 36 + license = licenses.bsd2; 37 + maintainers = with maintainers; [ nickcao ]; 38 + }; 39 + }
+2
pkgs/top-level/all-packages.nix
··· 19671 19672 eigen2 = callPackage ../development/libraries/eigen/2.0.nix {}; 19673 19674 vapoursynth = callPackage ../development/libraries/vapoursynth { 19675 inherit (darwin.apple_sdk.frameworks) ApplicationServices; 19676 };
··· 19671 19672 eigen2 = callPackage ../development/libraries/eigen/2.0.nix {}; 19673 19674 + eigenmath = callPackage ../applications/science/math/eigenmath { }; 19675 + 19676 vapoursynth = callPackage ../development/libraries/vapoursynth { 19677 inherit (darwin.apple_sdk.frameworks) ApplicationServices; 19678 };