nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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}:
19
20stdenv.mkDerivation rec {
21 pname = "emilua-this-thread";
22 version = "1.0.3";
23
24 src = fetchFromGitLab {
25 owner = "emilua";
26 repo = "this-thread";
27 rev = "v${version}";
28 hash = "sha256-3f2nB6KwNka0P7jnvMZF2+ExuTmICj2NswmRWB+YDKo=";
29 };
30
31 buildInputs = [
32 emilua
33 liburing
34 fmt
35 luajit_openresty
36 openssl
37 boost
38 ];
39
40 nativeBuildInputs = [
41 gperf
42 gawk
43 pkg-config
44 asciidoctor
45 meson
46 ninja
47 ];
48
49 passthru = {
50 updateScript = gitUpdater { rev-prefix = "v"; };
51 };
52
53 meta = {
54 description = "Access C++'s this_thread from Lua";
55 homepage = "https://emilua.org/";
56 license = lib.licenses.mit;
57 maintainers = with lib.maintainers; [ manipuladordedados ];
58 platforms = lib.platforms.linux;
59 };
60}