2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchurl, unzip, setfile}:
|
2009-05-13 11:21:29 +01:00
|
|
|
|
2014-09-01 23:08:51 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "muparser";
|
2014-09-01 23:08:51 +01:00
|
|
|
version = "2.2.3";
|
2021-01-21 17:00:13 +00:00
|
|
|
url-version = lib.replaceChars ["."] ["_"] version;
|
2014-09-01 23:08:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/muparser/muparser_v${url-version}.zip";
|
|
|
|
sha256 = "00l92k231yb49wijzkspa2l58mapn6vh2dlxnlg0pawjjfv33s6z";
|
|
|
|
};
|
2010-09-15 13:57:49 +01:00
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [setfile];
|
2012-11-28 10:24:53 +00:00
|
|
|
|
2010-09-15 13:57:49 +01:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://muparser.sourceforge.net";
|
2010-09-15 13:57:49 +01:00
|
|
|
description = "An extensible high performance math expression parser library written in C++";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.mit;
|
2021-01-23 17:15:07 +00:00
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
2010-09-15 13:57:49 +01:00
|
|
|
};
|
2009-05-13 11:21:29 +01:00
|
|
|
}
|