Skip to content

Commit 5189fc1

Browse files
committed
emilua: opt-in io_uring
Signed-off-by: lucasew <[email protected]>
1 parent f734b74 commit 5189fc1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pkgs/development/interpreters/emilua/default.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
asciidoctor,
2424
makeWrapper,
2525
gitUpdater,
26+
enableIoUring ? false,
27+
emilua, # this package
2628
}:
2729

2830
let
@@ -89,7 +91,8 @@ stdenv.mkDerivation (self: {
8991
dontUseCmakeConfigure = true;
9092

9193
mesonFlags = [
92-
(lib.mesonBool "enable_io_uring" false)
94+
(lib.mesonBool "enable_io_uring" enableIoUring)
95+
(lib.mesonBool "enable_file_io" enableIoUring)
9396
(lib.mesonBool "enable_tests" true)
9497
(lib.mesonBool "enable_manpages" true)
9598
(lib.mesonOption "version_suffix" "-nixpkgs1")
@@ -99,7 +102,8 @@ stdenv.mkDerivation (self: {
99102
patchShebangs src/emilua_gperf.awk --interpreter '${lib.getExe gawk} -f'
100103
'';
101104

102-
doCheck = true;
105+
# io_uring is not allowed in Nix sandbox, that breaks the tests
106+
doCheck = !enableIoUring;
103107

104108
mesonCheckFlags = [
105109
# Skipped test: libpsx
@@ -119,6 +123,7 @@ stdenv.mkDerivation (self: {
119123
updateScript = gitUpdater { rev-prefix = "v"; };
120124
inherit boost;
121125
sitePackages = "lib/emilua-${(lib.concatStringsSep "." (lib.take 2 (lib.splitVersion self.version)))}";
126+
tests.with-io-uring = emilua.override { enableIoUring = true; };
122127
};
123128

124129
meta = {

0 commit comments

Comments
 (0)