1{
2 lib,
3 stdenv,
4 meson,
5 ninja,
6 fetchFromGitLab,
7 gperf,
8 gawk,
9 gitUpdater,
10 pkg-config,
11 boost,
12 luajit_openresty,
13 asciidoctor,
14 emilua,
15 liburing,
16 openssl,
17 fmt,
18 secp256k1,
19}:
20
21stdenv.mkDerivation rec {
22 pname = "emilua-secp256k1";
23 version = "0.5.1";
24
25 src = fetchFromGitLab {
26 owner = "emilua";
27 repo = "secp256k1";
28 rev = "v${version}";
29 hash = "sha256-u3o6kE1HykxH2KbrJmNTDz9IbT+e26Vxze5RzvfCfVA=";
30 };
31
32 buildInputs = [
33 emilua
34 liburing
35 fmt
36 secp256k1
37 luajit_openresty
38 openssl
39 boost
40 ];
41
42 nativeBuildInputs = [
43 gperf
44 gawk
45 pkg-config
46 asciidoctor
47 meson
48 ninja
49 ];
50
51 passthru = {
52 updateScript = gitUpdater { rev-prefix = "v"; };
53 };
54
55 meta = with lib; {
56 description = "Emilua bindings to libsecp256k1";
57 homepage = "https://emilua.org/";
58 license = licenses.mit;
59 maintainers = with maintainers; [ manipuladordedados ];
60 platforms = platforms.linux;
61 };
62}