2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2023-02-02 18:25:31 +00:00
|
|
|
pname = "exprtk";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "0.0.2";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ArashPartow";
|
2023-03-04 12:14:45 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-ZV5nS6wEbKfzXhfXEtVlkwaEtxpTOYQaGlaxKx3FIvE=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -Dm644 exprtk.hpp "$out/include/exprtk.hpp"
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The C++ Mathematical Expression Toolkit Library";
|
|
|
|
homepage = "https://www.partow.net/programming/exprtk/index.html";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ anselmschueler ];
|
|
|
|
};
|
|
|
|
}
|