diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-01-22 03:34:06 +0100 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-01-22 03:34:06 +0100 |
commit | fde79b3209336da93a9bb93b13478b60ab01aa9f (patch) | |
tree | 4de3fbbe6f0855fb3f5a94cade91af8d8cc545f1 /pkgs/by-name/mu | |
parent | 27e48d2c55d7023fa39abdd4cac2f2a8d95ecdcb (diff) |
muparser: 2.2.3 -> 2.3.4, refactor
Diffstat (limited to 'pkgs/by-name/mu')
-rw-r--r-- | pkgs/by-name/mu/muparser/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/mu/muparser/package.nix b/pkgs/by-name/mu/muparser/package.nix new file mode 100644 index 0000000000000..12d0c64922334 --- /dev/null +++ b/pkgs/by-name/mu/muparser/package.nix @@ -0,0 +1,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; + }; +} |