9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
47 lines
1,006 B
Nix
47 lines
1,006 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, buildPackages
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "eigenmath";
|
|
version = "unstable-2023-06-16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "georgeweigt";
|
|
repo = pname;
|
|
rev = "800adc5c0bd654eb9ad28497e1b78c4061b3a4cb";
|
|
hash = "sha256-/ViU44E3myAc7B8amm/TaIh70g2Z7IC4KRRG3++nOKs=";
|
|
};
|
|
|
|
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
|
|
install -Dm555 eigenmath "$out/bin/eigenmath"
|
|
runHook postInstall
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = unstableGitUpdater { };
|
|
};
|
|
|
|
meta = with lib;{
|
|
description = "Computer algebra system written in C";
|
|
homepage = "https://georgeweigt.github.io";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ nickcao ];
|
|
};
|
|
}
|