emilua: 0.6.0 -> 0.7.2 (#308155)

This commit is contained in:
Valter Nazianzeno 2024-05-03 23:55:38 -03:00 committed by GitHub
parent 5f3e8db691
commit a013465da2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,6 +20,7 @@
, cereal
, cmake
, asciidoctor
, makeWrapper
}:
let
@ -33,13 +34,13 @@ let
in
stdenv.mkDerivation rec {
pname = "emilua";
version = "0.6.0";
version = "0.7.2";
src = fetchFromGitLab {
owner = "emilua";
repo = "emilua";
rev = "v${version}";
hash = "sha256-cW2b+jUQT60hCCirBzxZltzA7KvBihnzWNPkKDID6kU=";
hash = "sha256-gt+THEr3nilweDEDmEMwIsU4i9own4ICJlZD+z8XWRQ=";
};
buildInputs = [
@ -64,6 +65,7 @@ stdenv.mkDerivation rec {
meson
cmake
ninja
makeWrapper
];
dontUseCmakeConfigure = true;
@ -81,6 +83,7 @@ stdenv.mkDerivation rec {
(lib.mesonBool "enable_tests" true)
(lib.mesonBool "enable_manpages" true)
(lib.mesonOption "version_suffix" "-nixpkgs1")
(lib.mesonOption "ipc_actor_msg_max_members_number" "40")
];
postPatch = ''
@ -90,7 +93,17 @@ stdenv.mkDerivation rec {
cp "packagefiles/trial.protocol/meson.build" "trial-protocol/"
popd
substituteInPlace src/emilua_gperf.awk --replace '#!/usr/bin/env -S gawk --file' '#!${gawk}/bin/gawk -f'
patchShebangs src/emilua_gperf.awk --interpreter '${lib.getExe gawk} -f'
'';
doCheck = true;
# Skipped test: libpsx
# Known issue with no-new-privs disabled in the Nix build environment.
checkPhase = ''
runHook preCheck
meson test --print-errorlogs --no-suite libpsx
runHook postCheck
'';
meta = with lib; {