1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "exprtk";
9 version = "0.0.3";
10
11 src = fetchFromGitHub {
12 owner = "ArashPartow";
13 repo = "exprtk";
14 rev = version;
15 hash = "sha256-A4UzNYZZGgTJOw9G4Jg1wJZhxguFRohNEcwmwUOAX18=";
16 };
17
18 dontBuild = true;
19
20 installPhase = ''
21 runHook preInstall
22 install -Dm644 exprtk.hpp "$out/include/exprtk.hpp"
23 runHook postInstall
24 '';
25
26 meta = with lib; {
27 description = "C++ Mathematical Expression Toolkit Library";
28 homepage = "https://www.partow.net/programming/exprtk/index.html";
29 license = licenses.mit;
30 maintainers = [ ];
31 };
32}