nixpkgs/pkgs/by-name/ex/exprtk/package.nix

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

29 lines
631 B
Nix
Raw Normal View History

2023-01-25 19:46:49 +00:00
{ lib, stdenv, fetchFromGitHub }:
2023-02-22 03:19:37 +00:00
stdenv.mkDerivation rec {
2023-01-25 19:46:49 +00:00
pname = "exprtk";
2024-12-02 07:32:13 +00:00
version = "0.0.3";
2023-01-25 19:46:49 +00:00
src = fetchFromGitHub {
owner = "ArashPartow";
2023-02-22 03:19:37 +00:00
repo = pname;
rev = version;
2024-12-02 07:32:13 +00:00
hash = "sha256-A4UzNYZZGgTJOw9G4Jg1wJZhxguFRohNEcwmwUOAX18=";
2023-01-25 19:46:49 +00:00
};
dontBuild = true;
installPhase = ''
runHook preInstall
install -Dm644 exprtk.hpp "$out/include/exprtk.hpp"
runHook postInstall
'';
meta = with lib; {
description = "C++ Mathematical Expression Toolkit Library";
homepage = "https://www.partow.net/programming/exprtk/index.html";
license = licenses.mit;
maintainers = [ ];
2023-01-25 19:46:49 +00:00
};
}