File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
pkgs/development/interpreters/emilua Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2323 asciidoctor ,
2424 makeWrapper ,
2525 gitUpdater ,
26+ enableIoUring ? false ,
27+ emilua , # this package
2628} :
2729
2830let
@@ -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 = {
You can’t perform that action at this time.
0 commit comments