Unverified Commit a52450cd authored by Tom Hunze's avatar Tom Hunze
Browse files

gst-thumbnailers: enable tests

parent 29c3f245
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@
  fontconfig,
  libglycin,
  glycin-loaders,
  writableTmpDirAsHomeHook,
  shared-mime-info,
  callPackage,
  nix-update-script,
}:
@@ -54,6 +56,21 @@ stdenv.mkDerivation (finalAttrs: {
    glycin-loaders
  ];

  doCheck = true;

  nativeCheckInputs = [
    # fontconfig tries to write to `~/.cache/fontconfig`
    writableTmpDirAsHomeHook
  ];

  # Fix missing glycin loaders (glycin-loaders) and incorrectly detected
  # MIME types (shared-mime-info).
  preCheck = ''
    export XDG_DATA_DIRS=${glycin-loaders}/share:${shared-mime-info}/share:$XDG_DATA_DIRS
  '';

  mesonCheckFlags = [ "-v" ];

  passthru = {
    tests.thumbnailers = callPackage ./tests.nix { };
    updateScript = nix-update-script { };