efibooteditor: enable tests

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
phanirithvij
2025-11-12 00:30:05 +05:30
parent 78aad0acae
commit 82c689f134
+14 -1
View File
@@ -39,7 +39,11 @@ stdenv.mkDerivation (finalAttrs: {
'sh -c "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY efibooteditor"'
'';
env.BUILD_VERSION = "v${finalAttrs.version}";
env = {
LANG = "C.UTF8";
BUILD_VERSION = "v${finalAttrs.version}";
};
cmakeBuildType = "MinSizeRel";
cmakeFlags = [ "-DQT_VERSION_MAJOR=6" ];
@@ -47,6 +51,15 @@ stdenv.mkDerivation (finalAttrs: {
install -Dm644 $src/LICENSE.txt $out/share/licenses/efibooteditor/LICENSE
'';
doCheck = true;
checkPhase = ''
runHook preCheck
ctest --output-on-failure
runHook postCheck
'';
meta = {
description = "Boot Editor for (U)EFI based systems";
homepage = "https://github.com/Neverous/efibooteditor";