Unverified Commit 996dbb16 authored by Anthony Roussel's avatar Anthony Roussel
Browse files

rpi-imager: add installCheck

parent 6db520b1
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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 { };
  };