blob: 12d0c64922334d6bf897c05448842e9144b2d559 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ lib
, stdenv
, fetchFromGitHub
, cmake
, llvmPackages
}:
stdenv.mkDerivation rec {
pname = "muparser";
version = "2.3.4";
src = fetchFromGitHub {
owner = "beltoforion";
repo = "muparser";
rev = "v${version}";
hash = "sha256-hutmmhw7BHAwbDKBiK+3Yw833GL0rPGlVjlO7XzTii0=";
};
postPatch = ''
substituteInPlace muparser.pc.in \
--replace "\''${prefix}/@CMAKE_INSTALL_LIBDIR@" "@CMAKE_INSTALL_FULL_LIBDIR@" \
--replace "\''${prefix}/@CMAKE_INSTALL_INCLUDEDIR@" "@CMAKE_INSTALL_FULL_INCLUDEDIR@"
'';
nativeBuildInputs = [
cmake
];
buildInputs = lib.optionals stdenv.cc.isClang [
llvmPackages.openmp
];
meta = {
description = "An extensible high performance math expression parser library written in C++";
homepage = "https://beltoforion.de/en/muparser/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ wegank ];
platforms = lib.platforms.unix;
};
}
|