muparser: add darwin support

This commit is contained in:
Theodore Witkamp 2019-11-01 15:52:40 -07:00
parent 52de4dbf5c
commit f2860971a2
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, unzip}:
{stdenv, fetchurl, unzip, setfile}:
stdenv.mkDerivation rec {
pname = "muparser";
@ -10,12 +10,14 @@ stdenv.mkDerivation rec {
sha256 = "00l92k231yb49wijzkspa2l58mapn6vh2dlxnlg0pawjjfv33s6z";
};
buildInputs = [ unzip ];
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;
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
};
}

View File

@ -12973,7 +12973,9 @@ in
mumlib = callPackage ../development/libraries/mumlib { };
muparser = callPackage ../development/libraries/muparser { };
muparser = callPackage ../development/libraries/muparser {
inherit (darwin.stubs) setfile;
};
mutest = callPackage ../development/libraries/mutest { };