2323 asciidoctor ,
2424 makeWrapper ,
2525 gitUpdater ,
26+ enableIoUring ? false ,
27+ emilua , # this package
2628} :
2729
2830let
5153
5254stdenv . mkDerivation ( self : {
5355 pname = "emilua" ;
54- version = "0.10 .1" ;
56+ version = "0.11 .1" ;
5557
5658 src = fetchFromGitLab {
5759 owner = "emilua" ;
5860 repo = "emilua" ;
59- rev = "v${ self . version } " ;
60- hash = "sha256-D6XKXik9nWQ6t6EF6dLbRGB60iFbPUM8/H8iFAz1QlE =" ;
61+ tag = "v${ self . version } " ;
62+ hash = "sha256-Kl2atD3ejPSbwk9ByQrZrqBrHT4Wk+3AY3tvRC3jOCI =" ;
6163 } ;
6264
6365 propagatedBuildInputs = [
@@ -89,8 +91,8 @@ stdenv.mkDerivation (self: {
8991 dontUseCmakeConfigure = true ;
9092
9193 mesonFlags = [
92- ( lib . mesonBool "enable_file_io" true )
93- ( lib . mesonBool "enable_io_uring" true )
94+ ( lib . mesonBool "enable_io_uring" enableIoUring )
95+ ( lib . mesonBool "enable_file_io" enableIoUring )
9496 ( lib . mesonBool "enable_tests" true )
9597 ( lib . mesonBool "enable_manpages" true )
9698 ( lib . mesonOption "version_suffix" "-nixpkgs1" )
@@ -100,7 +102,8 @@ stdenv.mkDerivation (self: {
100102 patchShebangs src/emilua_gperf.awk --interpreter '${ lib . getExe gawk } -f'
101103 '' ;
102104
103- doCheck = true ;
105+ # io_uring is not allowed in Nix sandbox, that breaks the tests
106+ doCheck = ! enableIoUring ;
104107
105108 mesonCheckFlags = [
106109 # Skipped test: libpsx
@@ -120,17 +123,18 @@ stdenv.mkDerivation (self: {
120123 updateScript = gitUpdater { rev-prefix = "v" ; } ;
121124 inherit boost ;
122125 sitePackages = "lib/emilua-${ ( lib . concatStringsSep "." ( lib . take 2 ( lib . splitVersion self . version ) ) ) } " ;
126+ tests . with-io-uring = emilua . override { enableIoUring = true ; } ;
123127 } ;
124128
125- meta = with lib ; {
129+ meta = {
126130 description = "Lua execution engine" ;
127131 mainProgram = "emilua" ;
128132 homepage = "https://emilua.org/" ;
129- license = licenses . boost ;
130- maintainers = with maintainers ; [
133+ license = lib . licenses . boost ;
134+ maintainers = with lib . maintainers ; [
131135 manipuladordedados
132136 lucasew
133137 ] ;
134- platforms = platforms . linux ;
138+ platforms = lib . platforms . linux ;
135139 } ;
136140} )
0 commit comments