File tree 2 files changed +42
-0
lines changed
2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 26
26
27
27
linasm = pkgs . callPackage ./pkgs/linasm { } ;
28
28
29
+ mathpresso = pkgs . callPackage ./pkgs/mathpresso { } ;
30
+
29
31
pareto = pkgs . python39Packages . callPackage ./pkgs/pareto { } ;
30
32
31
33
pmlb = pkgs . python39Packages . callPackage ./pkgs/pmlb { } ;
Original file line number Diff line number Diff line change
1
+ { stdenv , lib , fetchFromGitHub , cmake } :
2
+ let
3
+ asmjit_src = fetchFromGitHub {
4
+ repo = "asmjit" ;
5
+ owner = "asmjit" ;
6
+ rev = "70e80b18a5cc05d566e6c90dde200472c9325113" ;
7
+ sha256 = "0if6npdx1qxvxdlkvnil8lqx3vclx2i2bliyj5xrl1ha0vnffmws" ;
8
+ } ;
9
+ in
10
+ stdenv . mkDerivation {
11
+ pname = "mathpresso" ;
12
+ version = "git" ;
13
+
14
+ #buildInputs = [ asmjit ];
15
+
16
+ nativeBuildInputs = [ cmake ] ;
17
+ cmakeFlags = [ "-DASMJIT_DIR=${ asmjit_src } " ] ;
18
+
19
+
20
+ src = fetchFromGitHub {
21
+ repo = "mathpresso" ;
22
+ owner = "kobalicek" ;
23
+ rev = "abb3cd67e530aeb09a03beae60f802a4b0f3fd6d" ;
24
+ sha256 = "1nh173kb1n00z5p11gamnl5lxk8g0lw1l8pncj9gdbvrcyyksaxh" ;
25
+ } ;
26
+
27
+ installPhase = ''
28
+ mkdir -p $out/lib
29
+ mkdir -p $out/include
30
+ install -m 755 ./libmathpresso.so $out/lib
31
+ install -m 644 $src/src/mathpresso/mathpresso.h $out/include
32
+ '' ;
33
+
34
+ meta = with lib ; {
35
+ description = "Mathematical expression parser and JIT compiler" ;
36
+ license = licenses . zlib ;
37
+ platforms = platforms . unix ;
38
+ #maintainers = with maintainers; [ xxx ];
39
+ } ;
40
+ }
You can’t perform that action at this time.
0 commit comments