rpi-imager: add installCheck

This commit is contained in:
Anthony Roussel 2023-08-23 15:12:22 +02:00
parent 6db520b15d
commit 996dbb160b
No known key found for this signature in database
GPG key ID: 9DC4987B1A55E75E

View file

@ -50,6 +50,18 @@ stdenv.mkDerivation rec {
This patch removes the check. */
patches = [ ./lsblkCheckFix.patch ];
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
# Without this, the tests fail because they cannot create the QT Window
export QT_QPA_PLATFORM=offscreen
$out/bin/rpi-imager --version
runHook postInstallCheck
'';
passthru = {
updateScript = nix-update-script { };
};