1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/muparser/default.nix
2021-01-21 19:11:02 -08:00

24 lines
675 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";
};
buildInputs = [
unzip
] ++ 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 ++ stdenv.lib.platforms.darwin;
};
}