8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
23 lines
698 B
Nix
23 lines
698 B
Nix
{stdenv, fetchurl, unzip, setfile}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "muparser";
|
|
version = "2.2.3";
|
|
url-version = stdenv.lib.replaceChars ["."] ["_"] version;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/muparser/muparser_v${url-version}.zip";
|
|
sha256 = "00l92k231yb49wijzkspa2l58mapn6vh2dlxnlg0pawjjfv33s6z";
|
|
};
|
|
|
|
buildInputs = [
|
|
unzip
|
|
] ++ stdenv.lib.optionals stdenv.isDarwin [setfile];
|
|
|
|
meta = {
|
|
homepage = "http://muparser.sourceforge.net";
|
|
description = "An extensible high performance math expression parser library written in C++";
|
|
license = stdenv.lib.licenses.mit;
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
|
};
|
|
}
|