diff options
author | Nick Cao <nickcao@nichi.co> | 2023-04-12 11:45:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-12 11:45:15 +0800 |
commit | 47f3cca66d499ef2421858cc8d14da1d56b6adac (patch) | |
tree | 124c61ddd807ae3a7df8c2ca1cc8a2da5352704c | |
parent | 349da1b760492c494244800200e7c0619b58d4fc (diff) | |
parent | 027d18d6a748d892c8d87db3fa4a6e791f480839 (diff) | |
download | nixpkgs-47f3cca66d499ef2421858cc8d14da1d56b6adac.tar nixpkgs-47f3cca66d499ef2421858cc8d14da1d56b6adac.tar.gz nixpkgs-47f3cca66d499ef2421858cc8d14da1d56b6adac.tar.bz2 nixpkgs-47f3cca66d499ef2421858cc8d14da1d56b6adac.tar.lz nixpkgs-47f3cca66d499ef2421858cc8d14da1d56b6adac.tar.xz nixpkgs-47f3cca66d499ef2421858cc8d14da1d56b6adac.tar.zst nixpkgs-47f3cca66d499ef2421858cc8d14da1d56b6adac.zip |
Merge pull request #225265 from NickCao/eigenmath
eigenmath: unstable-2023-03-05 -> unstable-2023-04-07
-rw-r--r-- | pkgs/applications/science/math/eigenmath/default.nix | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/pkgs/applications/science/math/eigenmath/default.nix b/pkgs/applications/science/math/eigenmath/default.nix index ddeba369366..f941b2725dc 100644 --- a/pkgs/applications/science/math/eigenmath/default.nix +++ b/pkgs/applications/science/math/eigenmath/default.nix @@ -1,28 +1,30 @@ { lib , stdenv , fetchFromGitHub -, fetchpatch +, buildPackages +, unstableGitUpdater }: stdenv.mkDerivation rec { pname = "eigenmath"; - version = "unstable-2023-03-05"; + version = "unstable-2023-04-07"; src = fetchFromGitHub { owner = "georgeweigt"; repo = pname; - rev = "633d5b0b2f2b87b6377bc4f715604f79b17aab66"; - hash = "sha256-5LOSyfeGavWesAR7jqd37Z845iyNstr/cJdQiWHlIPg="; + rev = "dd6a01da6e7f52a15af5bd584e93edf1a77bc04b"; + hash = "sha256-GZkC/Tvep7fL5nJyz0ZN7z0lUhGX4EJlXVswwAyegUE="; }; - 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="; - }) - ]; + checkPhase = let emulator = stdenv.hostPlatform.emulator buildPackages; in '' + runHook preCheck + + for testcase in selftest1 selftest2; do + ${emulator} ./eigenmath "test/$testcase" + done + + runHook postCheck + ''; installPhase = '' runHook preInstall @@ -30,6 +32,12 @@ stdenv.mkDerivation rec { runHook postInstall ''; + doCheck = true; + + passthru = { + updateScript = unstableGitUpdater { }; + }; + meta = with lib;{ description = "Computer algebra system written in C"; homepage = "https://georgeweigt.github.io"; |