Files
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

92 lines
1.6 KiB
Nix

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