nixpkgs/pkgs/development/libraries/muparser/default.nix

24 lines
698 B
Nix
Raw Normal View History

2019-11-01 22:52:40 +00:00
{stdenv, fetchurl, unzip, setfile}:
2014-09-01 23:08:51 +01:00
stdenv.mkDerivation rec {
pname = "muparser";
2014-09-01 23:08:51 +01:00
version = "2.2.3";
url-version = stdenv.lib.replaceChars ["."] ["_"] version;
src = fetchurl {
url = "mirror://sourceforge/muparser/muparser_v${url-version}.zip";
sha256 = "00l92k231yb49wijzkspa2l58mapn6vh2dlxnlg0pawjjfv33s6z";
};
2019-11-01 22:52:40 +00:00
buildInputs = [
unzip
] ++ stdenv.lib.optionals stdenv.isDarwin [setfile];
2012-11-28 10:24:53 +00:00
meta = {
homepage = "http://muparser.sourceforge.net";
description = "An extensible high performance math expression parser library written in C++";
license = stdenv.lib.licenses.mit;
2019-11-01 22:52:40 +00:00
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
};
}