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