fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / ei / eigenmath / package.nix
blobdc37ce7776effbfb23ad6b5ba05ea14f105733d2
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   buildPackages,
6   unstableGitUpdater,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "eigenmath";
11   version = "3.33-unstable-2024-11-22";
13   src = fetchFromGitHub {
14     owner = "georgeweigt";
15     repo = pname;
16     rev = "2b68af098c0ae53ce3e1dda2d397f383e5418b34";
17     hash = "sha256-YnSNXlH8l8+2WeoiLpPuzepv/Mtxa1ltGpgcln+Emgw=";
18   };
20   checkPhase =
21     let
22       emulator = stdenv.hostPlatform.emulator buildPackages;
23     in
24     ''
25       runHook preCheck
27       for testcase in selftest1 selftest2; do
28         ${emulator} ./eigenmath "test/$testcase"
29       done
31       runHook postCheck
32     '';
34   installPhase = ''
35     runHook preInstall
36     install -Dm555 eigenmath "$out/bin/eigenmath"
37     runHook postInstall
38   '';
40   doCheck = true;
42   passthru = {
43     updateScript = unstableGitUpdater { };
44   };
46   meta = with lib; {
47     description = "Computer algebra system written in C";
48     mainProgram = "eigenmath";
49     homepage = "https://georgeweigt.github.io";
50     license = licenses.bsd2;
51     maintainers = with maintainers; [ nickcao ];
52     platforms = platforms.unix;
53   };