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