nixpkgs/pkgs/applications/science/math/eigenmath/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.0 KiB
Nix
Raw Normal View History

2023-03-05 02:30:57 +00:00
{ lib
, stdenv
, fetchFromGitHub
2023-04-08 15:19:59 +00:00
, buildPackages
2023-04-08 06:58:35 +00:00
, unstableGitUpdater
2023-03-05 02:30:57 +00:00
}:
stdenv.mkDerivation rec {
pname = "eigenmath";
version = "unstable-2024-01-23";
2023-03-05 02:30:57 +00:00
src = fetchFromGitHub {
owner = "georgeweigt";
repo = pname;
rev = "1d55696b742fee0b4ef8e39b7a420c00c2f1e329";
hash = "sha256-AQdCFKDUWfNKxZoWp82DdxUA2GiMGWyuyh7Fkofm9kc=";
2023-03-05 02:30:57 +00:00
};
2023-04-08 15:19:59 +00:00
checkPhase = let emulator = stdenv.hostPlatform.emulator buildPackages; in ''
runHook preCheck
for testcase in selftest1 selftest2; do
${emulator} ./eigenmath "test/$testcase"
done
runHook postCheck
'';
2023-03-05 02:30:57 +00:00
installPhase = ''
runHook preInstall
install -Dm555 eigenmath "$out/bin/eigenmath"
runHook postInstall
'';
2023-04-08 15:19:59 +00:00
doCheck = true;
2023-04-08 06:58:35 +00:00
passthru = {
updateScript = unstableGitUpdater { };
};
2023-03-05 02:30:57 +00:00
meta = with lib;{
description = "Computer algebra system written in C";
homepage = "https://georgeweigt.github.io";
license = licenses.bsd2;
maintainers = with maintainers; [ nickcao ];
2023-08-13 15:31:58 +00:00
platforms = platforms.unix;
2023-03-05 02:30:57 +00:00
};
}