Files
nixpkgs/pkgs/development/emilua-plugins/qt5/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

88 lines
1.5 KiB
Nix

{
lib,
stdenv,
meson,
ninja,
fetchFromGitLab,
gperf,
gawk,
gitUpdater,
pkg-config,
boost,
luajit_openresty,
asciidoctor,
libsForQt5,
emilua,
liburing,
fmt,
runCommand,
xvfb-run,
qt5, # this
}:
stdenv.mkDerivation rec {
pname = "emilua-qt5";
version = "1.0.2";
src = fetchFromGitLab {
owner = "emilua";
repo = "qt5";
rev = "v${version}";
hash = "sha256-9w9E0RWwW3scbmOOXdOXj22LR65a6XBHDkC8eimAfUs=";
};
buildInputs = [
luajit_openresty
boost
libsForQt5.qtdeclarative
emilua
liburing
fmt
libsForQt5.qtbase
];
nativeBuildInputs = [
gperf
gawk
pkg-config
asciidoctor
meson
ninja
libsForQt5.wrapQtAppsHook
libsForQt5.qttools
];
passthru = {
updateScript = gitUpdater { rev-prefix = "v"; };
tests.basic =
runCommand "test-basic-qt5"
{
buildInputs = [
emilua
qt5
libsForQt5.wrapQtAppsHook
xvfb-run
];
dontWrapQtApps = true;
}
''
makeWrapper ${lib.getExe emilua} payload \
''${qtWrapperArgs[@]} \
--add-flags ${./basic_test.lua}
xvfb-run ./payload
touch $out
'';
};
meta = {
description = "Qt5 bindings for Emilua";
homepage = "https://emilua.org/";
license = lib.licenses.boost;
maintainers = with lib.maintainers; [
manipuladordedados
lucasew
];
platforms = lib.platforms.linux;
};
}